controllers

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExternalClusterReferenceFinalizer = "ecr.kamaji.clastix.io/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")

Functions

func TrackConditionType added in v0.4.0

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

Types

type ExternalClusterReferenceReconciler added in v0.10.0

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

func (*ExternalClusterReferenceReconciler) Reconcile added in v0.10.0

func (*ExternalClusterReferenceReconciler) SetupWithManager added in v0.10.0

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

type KamajiControlPlaneReconciler

type KamajiControlPlaneReconciler struct {
	ExternalClusterReferenceStore externalclusterreference.Store
	FeatureGates                  featuregate.FeatureGate
	MaxConcurrentReconciles       int
	// contains filtered or unexported fields
}

KamajiControlPlaneReconciler reconciles a KamajiControlPlane object.

func (*KamajiControlPlaneReconciler) Reconcile

func (*KamajiControlPlaneReconciler) SetupWithManager

func (r *KamajiControlPlaneReconciler) SetupWithManager(mgr ctrl.Manager, channel chan event.GenericEvent) error

SetupWithManager sets up the controller with the Manager.

type PushKamajiChange added in v0.10.0

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

func (*PushKamajiChange) Reconcile added in v0.10.0

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

func (*PushKamajiChange) SetupWithManager added in v0.10.0

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

type UnmanagedControlPlaneAddressError added in v0.2.2

type UnmanagedControlPlaneAddressError struct {
	Kind string
}

func NewUnmanagedControlPlaneAddressError added in v0.2.2

func NewUnmanagedControlPlaneAddressError(kind string) *UnmanagedControlPlaneAddressError

func (UnmanagedControlPlaneAddressError) Error added in v0.2.2

Jump to

Keyboard shortcuts

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