Documentation
¶
Index ¶
- Constants
- func GetHealthCheckFunc(gvk schema.GroupVersionKind) func(obj *unstructured.Unstructured) (openchoreov1alpha1.HealthStatus, error)
- func NewReleaseCleanupFailedCondition(generation int64, err error) metav1.Condition
- func NewReleaseFinalizingCondition(generation int64) metav1.Condition
- type Reconciler
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 GetHealthCheckFunc ¶
func GetHealthCheckFunc(gvk schema.GroupVersionKind) func(obj *unstructured.Unstructured) (openchoreov1alpha1.HealthStatus, error)
Types ¶
type Reconciler ¶
type Reconciler struct {
client.Client
DpClientMgr *dpKubernetes.KubeClientManager
Scheme *runtime.Scheme
}
Reconciler reconciles a Release object
func (*Reconciler) Reconcile ¶
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.
Click to show internal directories.
Click to hide internal directories.