controllers

package
v0.10.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MPL-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SourceRevisionChangePredicate

type SourceRevisionChangePredicate struct {
	predicate.Funcs
}

func (SourceRevisionChangePredicate) Update

type TerraformReconciler

type TerraformReconciler struct {
	client.Client

	EventRecorder   kuberecorder.EventRecorder
	MetricsRecorder *metrics.Recorder
	StatusPoller    *polling.StatusPoller
	Scheme          *runtime.Scheme
	CertRotator     *mtls.CertRotator
	RunnerGRPCPort  int
	// contains filtered or unexported fields
}

TerraformReconciler reconciles a Terraform object

func (*TerraformReconciler) IndexBy

func (r *TerraformReconciler) IndexBy(kind string) func(o client.Object) []string

func (*TerraformReconciler) LookupOrCreateRunner

func (r *TerraformReconciler) LookupOrCreateRunner(ctx context.Context, terraform infrav1.Terraform) (runner.RunnerClient, func() error, error)

func (*TerraformReconciler) Reconcile

func (r *TerraformReconciler) Reconcile(ctx context.Context, req ctrl.Request) (retResult ctrl.Result, retErr 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. TODO(user): Modify the Reconcile function to compare the state specified by the Terraform object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*TerraformReconciler) SetupWithManager

func (r *TerraformReconciler) SetupWithManager(mgr ctrl.Manager, maxConcurrentReconciles int, httpRetry int) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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