stewardsecret

package
v0.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package stewardsecret provides a controller that translates Steward kubeconfig secrets to the format expected by Cluster API.

Problem: Steward creates kubeconfig secrets with key "admin.conf", but CAPI expects "value". Solution: Watch Steward secrets and create/update corresponding CAPI-compatible secrets.

Index

Constants

View Source
const (
	// StewardAdminKubeconfigLabel is the label that identifies Steward admin kubeconfig secrets.
	StewardAdminKubeconfigLabel = "steward.butlerlabs.dev/component"
	StewardAdminKubeconfigValue = "admin-kubeconfig"

	// StewardSourceKey is the key Steward uses for the kubeconfig.
	StewardSourceKey = "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

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

Reconciler watches Steward kubeconfig secrets and creates CAPI-compatible versions.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile handles Steward secret translation.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL