mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
This adds a new resource which deploys a Kubernetes API server proxy that can be used to access the API server without tokens through Netbird. Part of #274 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added ClusterProxy custom resource for cluster API proxying capabilities * **Documentation** * Added ClusterProxy API reference documentation with schema details * **Examples** * Added example ClusterProxy configuration and RBAC setup for cluster proxy targets <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/netbirdio/kubernetes-operator/pull/279?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
75 lines
3.7 KiB
Go
75 lines
3.7 KiB
Go
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// 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("ClusterProxy"):
|
|
return &apiv1alpha1.ClusterProxyApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ClusterProxySpec"):
|
|
return &apiv1alpha1.ClusterProxySpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ClusterProxyStatus"):
|
|
return &apiv1alpha1.ClusterProxyStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("ContainerOverride"):
|
|
return &apiv1alpha1.ContainerOverrideApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("CrossNamespaceReference"):
|
|
return &apiv1alpha1.CrossNamespaceReferenceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("DNSZoneReference"):
|
|
return &apiv1alpha1.DNSZoneReferenceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("Group"):
|
|
return &apiv1alpha1.GroupApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("GroupReference"):
|
|
return &apiv1alpha1.GroupReferenceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("GroupSpec"):
|
|
return &apiv1alpha1.GroupSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("GroupStatus"):
|
|
return &apiv1alpha1.GroupStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("NetworkResource"):
|
|
return &apiv1alpha1.NetworkResourceApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("NetworkResourceSpec"):
|
|
return &apiv1alpha1.NetworkResourceSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("NetworkResourceStatus"):
|
|
return &apiv1alpha1.NetworkResourceStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("NetworkRouter"):
|
|
return &apiv1alpha1.NetworkRouterApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("NetworkRouterSpec"):
|
|
return &apiv1alpha1.NetworkRouterSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("NetworkRouterStatus"):
|
|
return &apiv1alpha1.NetworkRouterStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("SetupKey"):
|
|
return &apiv1alpha1.SetupKeyApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("SetupKeySpec"):
|
|
return &apiv1alpha1.SetupKeySpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("SetupKeyStatus"):
|
|
return &apiv1alpha1.SetupKeyStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("SidecarProfile"):
|
|
return &apiv1alpha1.SidecarProfileApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("SidecarProfileSpec"):
|
|
return &apiv1alpha1.SidecarProfileSpecApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("SidecarProfileStatus"):
|
|
return &apiv1alpha1.SidecarProfileStatusApplyConfiguration{}
|
|
case v1alpha1.SchemeGroupVersion.WithKind("WorkloadOverride"):
|
|
return &apiv1alpha1.WorkloadOverrideApplyConfiguration{}
|
|
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func NewTypeConverter(scheme *runtime.Scheme) managedfields.TypeConverter {
|
|
return managedfields.NewSchemeTypeConverter(scheme, internal.Parser())
|
|
}
|