mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 18:59:09 +00:00
Add new resource for Kubernetes API proxy (#279)
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 -->
This commit is contained in:
@@ -18,6 +18,12 @@ import (
|
||||
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"):
|
||||
|
||||
Reference in New Issue
Block a user