Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SecretNameIndexKey is the key used for indexing secret // resources based on their name. SecretNameIndexKey string = "SecretNameIndexKey" // CAPIClusterNameIndexKey is the key used for indexing CAPI cluster // resources based on their name. CAPIClusterNameIndexKey string = "CAPIClusterNameIndexKey" // MissingSecretRequeueTime is the period after which a secret will be // checked if it doesn't exist. MissingSecretRequeueTime = time.Second * 30 )
View Source
const GitOpsClusterFinalizer = "clusters.gitops.weave.works"
GitOpsClusterFinalizer is the finalizer key used to detect when we need to finalize a GitOps cluster.
View Source
const GitOpsClusterProvisionedAnnotation = "clusters.gitops.weave.works/provisioned"
GitOpsClusterProvisionedAnnotation if applied to a GitOpsCluster indicates that it should have a ready Provisioned condition.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitOpsClusterReconciler ¶
type GitOpsClusterReconciler struct { client.Client Scheme *runtime.Scheme Options Options ConfigParser func(b []byte) (client.Client, error) // contains filtered or unexported fields }
GitOpsClusterReconciler reconciles a GitOpsCluster object
func NewGitOpsClusterReconciler ¶
func NewGitOpsClusterReconciler(c client.Client, s *runtime.Scheme, opts Options) *GitOpsClusterReconciler
NewGitOpsClusterReconciler creates and returns a configured reconciler ready for use.
func (*GitOpsClusterReconciler) Reconcile ¶
func (r *GitOpsClusterReconciler) 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.
func (*GitOpsClusterReconciler) SetupWithManager ¶
func (r *GitOpsClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.