Documentation
¶
Index ¶
- Constants
- func GetHealthCheckFunc(gvk schema.GroupVersionKind) func(obj *unstructured.Unstructured) (openchoreov1alpha1.HealthStatus, error)
- func NewRenderedReleaseCleanupFailedCondition(generation int64, err error) metav1.Condition
- func NewRenderedReleaseFinalizingCondition(generation int64) metav1.Condition
- type Reconciler
Constants ¶
View Source
const ( // ControllerName is the name of the controller managing RenderedRelease resources ControllerName = "renderedrelease-controller" // ConditionResourcesApplied indicates whether resources were successfully applied to the target plane. // When False, it contains the error message from the failed apply operation. ConditionResourcesApplied = "ResourcesApplied" // ReasonApplySucceeded indicates all resources were applied successfully ReasonApplySucceeded = "ApplySucceeded" // ReasonApplyFailed indicates one or more resources failed to apply ReasonApplyFailed = "ApplyFailed" )
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 ( // DataPlaneCleanupFinalizer is the finalizer that is used to clean up the data plane resources. DataPlaneCleanupFinalizer = "openchoreo.dev/dataplane-cleanup" // ObsPlaneCleanupFinalizer is the finalizer that is used to clean up the observability plane resources. ObsPlaneCleanupFinalizer = "openchoreo.dev/obsplane-cleanup" )
View Source
const ( // ConditionFinalizing represents whether the RenderedRelease is being finalized ConditionFinalizing controller.ConditionType = "Finalizing" )
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
PlaneClientProvider kubernetesClient.PlaneClientProvider
Scheme *runtime.Scheme
}
Reconciler reconciles a RenderedRelease 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.