Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ReasonSnapshotReady indicates the ComponentEnvSnapshot is successfully created/updated ReasonSnapshotReady controller.ConditionReason = "SnapshotReady" // ReasonWorkloadNotFound indicates the referenced Workload doesn't exist ReasonWorkloadNotFound controller.ConditionReason = "WorkloadNotFound" // ReasonComponentTypeNotFound indicates the referenced ComponentType doesn't exist ReasonComponentTypeNotFound controller.ConditionReason = "ComponentTypeNotFound" // ReasonTraitNotFound indicates one or more referenced Traits don't exist ReasonTraitNotFound controller.ConditionReason = "TraitNotFound" // ReasonProjectNotFound indicates the referenced Project doesn't exist ReasonProjectNotFound controller.ConditionReason = "ProjectNotFound" // ReasonDeploymentPipelineNotFound indicates the deployment pipeline is not found ReasonDeploymentPipelineNotFound controller.ConditionReason = "DeploymentPipelineNotFound" // ReasonInvalidConfiguration indicates the Component configuration is invalid ReasonInvalidConfiguration controller.ConditionReason = "InvalidConfiguration" // ReasonSnapshotCreationFailed indicates failure to create the ComponentEnvSnapshot ReasonSnapshotCreationFailed controller.ConditionReason = "SnapshotCreationFailed" // ReasonSnapshotUpdateFailed indicates failure to update the ComponentEnvSnapshot ReasonSnapshotUpdateFailed controller.ConditionReason = "SnapshotUpdateFailed" )
View Source
const ( // ConditionReady indicates that the Component has successfully created/updated // the ComponentEnvSnapshot and is ready for deployment. ConditionReady controller.ConditionType = "Ready" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
client.Client
// IsGitOpsMode indicates whether the controller is running in GitOps mode
// In GitOps mode, the controller will not create or update resources directly in the cluster,
// but will instead generate the necessary manifests and creates GitCommitRequests to update the Git repository.
IsGitOpsMode bool
Scheme *runtime.Scheme
}
Reconciler reconciles a Component object
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.