controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExternalClusterReferenceFinalizer = "ecr.steward.butlerlabs.dev/finalizer"
)

Variables

View Source
var (
	ErrExternalClusterReferenceNotEnabled                 = errors.New("external cluster feature gates are not enabled")
	ErrExternalClusterReferenceCrossNamespaceReference    = errors.New("the ExternalClusterReference is enforcing kubeconfig in the same Namespace, ExternalClusterReferenceCrossNamespace must be enabled")
	ErrExternalCLusterReferenceSecretEmptyError           = errors.New("could not extract kubeconfig for external cluster reference, secret is empty")
	ErrExternalClusterReferenceSecretKeyEmpty             = errors.New("could not extract kubeconfig for external cluster reference, key is empty")
	ErrExternalClusterReferenceNonInitializedStore        = errors.New("remote manager is not yet initialized")
	ErrExternalClusterReferenceTenantControlPlaneNotFound = errors.New("TenantControlPlane custom resource not available in external cluster")
)
View Source
var ErrEnqueueBack = errors.New("enqueue back")
View Source
var ErrUnsupportedCertificateSAN = errors.New("a certificate SAN must be made of host only with no port")

Functions

func TrackConditionType

func TrackConditionType(conditions *[]metav1.Condition, conditionType v1alpha1.StewardControlPlaneConditionType, observedGeneration int64, fn func() error)

Types

type ExternalClusterReferenceReconciler

type ExternalClusterReferenceReconciler struct {
	Client         client.Client
	Store          externalclusterreference.Store
	TriggerChannel chan event.GenericEvent
}

func (*ExternalClusterReferenceReconciler) Reconcile

func (*ExternalClusterReferenceReconciler) SetupWithManager

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

type PushStewardChange

type PushStewardChange struct {
	ParentClient   client.Client
	Client         client.Client
	TriggerChannel chan event.GenericEvent
}

func (*PushStewardChange) Reconcile

func (p *PushStewardChange) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

func (*PushStewardChange) SetupWithManager

func (p *PushStewardChange) SetupWithManager(mgr ctrl.Manager) error

type StewardControlPlaneReconciler

type StewardControlPlaneReconciler struct {
	ExternalClusterReferenceStore externalclusterreference.Store
	FeatureGates                  featuregate.FeatureGate
	MaxConcurrentReconciles       int
	DynamicInfrastructureClusters sets.Set[string]
	// contains filtered or unexported fields
}

StewardControlPlaneReconciler reconciles a StewardControlPlane object.

func (*StewardControlPlaneReconciler) Reconcile

func (*StewardControlPlaneReconciler) SetupWithManager

func (r *StewardControlPlaneReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, channel chan event.GenericEvent) error

SetupWithManager sets up the controller with the Manager.

type UnmanagedControlPlaneAddressError

type UnmanagedControlPlaneAddressError struct {
	Kind string
}

func NewUnmanagedControlPlaneAddressError

func NewUnmanagedControlPlaneAddressError(kind string) *UnmanagedControlPlaneAddressError

func (UnmanagedControlPlaneAddressError) Error

Jump to

Keyboard shortcuts

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