controllers

package
v0.0.0-...-c9899b3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

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.

type Options

type Options struct {
	CAPIEnabled        bool
	DefaultRequeueTime time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL