mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
Implement new setup key resource (#178)
This change implements a new resource called SetupKey that manages the lifecycle of setup keys and stores them in secrets. A major change here is that we are also switching to using SSA for resource management. Part of #172 Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// Code generated by controller-gen. DO NOT EDIT.
|
||||
|
||||
package applyconfigurations
|
||||
|
||||
import (
|
||||
v1alpha1 "github.com/netbirdio/kubernetes-operator/api/v1alpha1"
|
||||
apiv1alpha1 "github.com/netbirdio/kubernetes-operator/pkg/applyconfigurations/api/v1alpha1"
|
||||
internal "github.com/netbirdio/kubernetes-operator/pkg/applyconfigurations/internal"
|
||||
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=netbird.io, Version=v1alpha1
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("SetupKey"):
|
||||
return &apiv1alpha1.SetupKeyApplyConfiguration{}
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("SetupKeySpec"):
|
||||
return &apiv1alpha1.SetupKeySpecApplyConfiguration{}
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("SetupKeyStatus"):
|
||||
return &apiv1alpha1.SetupKeyStatusApplyConfiguration{}
|
||||
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
|
||||
return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
|
||||
}
|
||||
Reference in New Issue
Block a user