release

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ReasonCleanupInProgress dataplane resources are being cleaned up
	ReasonCleanupInProgress controller.ConditionReason = "CleanupInProgress"
	// ReasonCleanupFailed cleanup of dataplane resources failed
	ReasonCleanupFailed controller.ConditionReason = "CleanupFailed"
)
View Source
const (
	// ConditionFinalizing represents whether the Release is being finalized
	ConditionFinalizing controller.ConditionType = "Finalizing"
)
View Source
const (
	// ControllerName is the name of the controller managing Release resources
	ControllerName = "release-controller"
)
View Source
const (
	// DataPlaneCleanupFinalizer is the finalizer that is used to clean up the data plane resources.
	DataPlaneCleanupFinalizer = "openchoreo.dev/dataplane-cleanup"
)

Variables

This section is empty.

Functions

func NewReleaseCleanupFailedCondition

func NewReleaseCleanupFailedCondition(generation int64, err error) metav1.Condition

func NewReleaseFinalizingCondition

func NewReleaseFinalizingCondition(generation int64) metav1.Condition

Types

type Reconciler

type Reconciler struct {
	client.Client
	DpClientMgr *dpKubernetes.KubeClientManager
	Scheme      *runtime.Scheme
}

Reconciler reconciles a Release object

func (*Reconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.19.1/pkg/reconcile

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