Documentation
¶
Overview ¶
Package kamajisecret provides a controller that translates Kamaji kubeconfig secrets to the format expected by Cluster API.
Problem: Kamaji creates kubeconfig secrets with key "admin.conf", but CAPI expects "value". Solution: Watch Kamaji secrets and create/update corresponding CAPI-compatible secrets.
Index ¶
Constants ¶
View Source
const ( // StewardAdminKubeconfigLabel is the label that identifies Kamaji admin kubeconfig secrets. StewardAdminKubeconfigLabel = "steward.butlerlabs.dev/component" KamajiAdminKubeconfigValue = "admin-kubeconfig" // KamajiSourceKey is the key Kamaji uses for the kubeconfig. KamajiSourceKey = "admin.conf" // CAPITargetKey is the key CAPI expects for the kubeconfig. CAPITargetKey = "value" // CAPIClusterNameLabel is the standard CAPI label for cluster name. CAPIClusterNameLabel = "cluster.x-k8s.io/cluster-name" // ButlerManagedLabel marks resources managed by Butler. ButlerManagedLabel = "app.kubernetes.io/managed-by" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
Reconciler watches Kamaji kubeconfig secrets and creates CAPI-compatible versions.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.