mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
Implement group resource (#181)
This change implements a new group resource. It also sets the standard for a resource reference will be done through out the controller. A resource reference can either be done by ID or as a local named reference to the actual resource. This allows end users to chose if they want to manage things completely in the cluster or not. Part of #172 Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
@@ -16,6 +16,14 @@ import (
|
||||
func ForKind(kind schema.GroupVersionKind) interface{} {
|
||||
switch kind {
|
||||
// Group=netbird.io, Version=v1alpha1
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("Group"):
|
||||
return &apiv1alpha1.GroupApplyConfiguration{}
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("GroupSpec"):
|
||||
return &apiv1alpha1.GroupSpecApplyConfiguration{}
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("GroupStatus"):
|
||||
return &apiv1alpha1.GroupStatusApplyConfiguration{}
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("ResourceReference"):
|
||||
return &apiv1alpha1.ResourceReferenceApplyConfiguration{}
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("SetupKey"):
|
||||
return &apiv1alpha1.SetupKeyApplyConfiguration{}
|
||||
case v1alpha1.SchemeGroupVersion.WithKind("SetupKeySpec"):
|
||||
|
||||
Reference in New Issue
Block a user