extension

package
v1.114.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 37 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ReasonReconcileFailed indicates the reconciliation failed.
	ReasonReconcileFailed = "ReconcileFailed"
	// ReasonReconcileSuccess indicates the reconciliation succeeded.
	ReasonReconcileSuccess = "ReconcileSuccessful"
	// ReasonDeleteFailed indicates the deletion failed.
	ReasonDeleteFailed = "DeleteFailed"
	// ReasonDeleteSuccessful indicates the deletion failed.
	ReasonDeleteSuccessful = "DeleteSuccessful"
	// ReasonNoGardenFound indicates no Garden resource exists.
	ReasonNoGardenFound = "NoGardenFound"
	// ReasonInstalledInRuntime indicates the extension is installed in the garden runtime cluster.
	ReasonInstalledInRuntime = "InstalledInRuntime"
)
View Source
const ControllerName = "extension"

ControllerName is the name of this controller.

Variables

View Source
var RequeueGardenResourceNotReady = 10 * time.Second

RequeueGardenResourceNotReady is the time after which an extension will be requeued, if the Garden resource was not ready during its reconciliation. Exposed for testing.

Functions

This section is empty.

Types

type Conditions

type Conditions struct {
	// contains filtered or unexported fields
}

Conditions contains all conditions of the extension status subresource.

func NewConditions

func NewConditions(clock clock.Clock, status operatorv1alpha1.ExtensionStatus) Conditions

NewConditions returns a new instance of Conditions. All conditions are retrieved from the given 'status' or newly initialized.

func (Conditions) ConditionTypes

func (c Conditions) ConditionTypes() []gardencorev1beta1.ConditionType

ConditionTypes returns all garden condition types.

func (Conditions) ConvertToSlice

func (c Conditions) ConvertToSlice() []gardencorev1beta1.Condition

ConvertToSlice returns the garden conditions as a slice.

type Reconciler

type Reconciler struct {
	RuntimeClientSet kubernetes.Interface
	GardenClientMap  clientmap.ClientMap
	Config           operatorconfigv1alpha1.OperatorConfiguration
	GardenNamespace  string
	HelmRegistry     oci.Interface
	Clock            clock.Clock
	Recorder         record.EventRecorder
	// contains filtered or unexported fields
}

Reconciler reconciles Extensions.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) MapToAllExtensions added in v1.111.0

func (r *Reconciler) MapToAllExtensions(log logr.Logger) handler.MapFunc

MapToAllExtensions returns reconcile.Request objects for all existing gardens in the system.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile performs the main reconciliation logic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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