bc8e7e10e1
Reviewed-on: #1 Co-authored-by: Timo Behrendt <t.behrendt@t00n.de> Co-committed-by: Timo Behrendt <t.behrendt@t00n.de>
49 lines
2.0 KiB
Go
49 lines
2.0 KiB
Go
/*
|
|
Copyright The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package applyconfiguration
|
|
|
|
import (
|
|
v1alpha1 "gitea.t000-n.de/t.behrendt/authentik-kubernetes-operator/pkg/apis/proxyprovider/v1alpha1"
|
|
internal "gitea.t000-n.de/t.behrendt/authentik-kubernetes-operator/pkg/generated/applyconfiguration/internal"
|
|
proxyproviderv1alpha1 "gitea.t000-n.de/t.behrendt/authentik-kubernetes-operator/pkg/generated/applyconfiguration/proxyprovider/v1alpha1"
|
|
runtime "k8s.io/apimachinery/pkg/runtime"
|
|
schema "k8s.io/apimachinery/pkg/runtime/schema"
|
|
managedfields "k8s.io/apimachinery/pkg/util/managedfields"
|
|
)
|
|
|
|
// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
|
|
// apply configuration type exists for the given GroupVersionKind.
|
|
func ForKind(kind schema.GroupVersionKind) interface{} {
|
|
switch kind {
|
|
// Group=proxyprovider.t000-n.de, Version=v1alpha1
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ProxyProvider"):
|
|
return &proxyproviderv1alpha1.ProxyProviderApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ProxyProviderSpec"):
|
|
return &proxyproviderv1alpha1.ProxyProviderSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ProxyProviderStatus"):
|
|
return &proxyproviderv1alpha1.ProxyProviderStatusApplyConfiguration{}
|
|
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
|
|
return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
|
|
}
|