Documentation ¶
Index ¶
- type SecretDeletePredicate
- type SourceRevisionChangePredicate
- type TerraformReconciler
- func (r *TerraformReconciler) IndexBy(kind string) func(o client.Object) []string
- func (r *TerraformReconciler) LookupOrCreateRunner(ctx context.Context, terraform infrav1.Terraform, revision string) (runner.RunnerClient, func() error, error)
- func (r *TerraformReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *TerraformReconciler) SetupWithManager(mgr ctrl.Manager, maxConcurrentReconciles int, httpRetry int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretDeletePredicate ¶ added in v0.13.0
type SecretDeletePredicate struct { }
func (SecretDeletePredicate) Create ¶ added in v0.13.0
func (SecretDeletePredicate) Create(e event.CreateEvent) bool
Create implements Predicate.
func (SecretDeletePredicate) Delete ¶ added in v0.13.0
func (SecretDeletePredicate) Delete(e event.DeleteEvent) bool
Delete implements Predicate.
func (SecretDeletePredicate) Generic ¶ added in v0.13.0
func (SecretDeletePredicate) Generic(e event.GenericEvent) bool
Generic implements Predicate.
func (SecretDeletePredicate) Update ¶ added in v0.13.0
func (SecretDeletePredicate) Update(e event.UpdateEvent) bool
Update implements Predicate.
type SourceRevisionChangePredicate ¶
func (SourceRevisionChangePredicate) Update ¶
func (SourceRevisionChangePredicate) Update(e event.UpdateEvent) bool
type TerraformReconciler ¶
type TerraformReconciler struct { client.Client kuberecorder.EventRecorder runtimeCtrl.Metrics StatusPoller *polling.StatusPoller Scheme *runtime.Scheme CertRotator *mtls.CertRotator RunnerGRPCPort int RunnerCreationTimeout time.Duration RunnerGRPCMaxMessageSize int AllowBreakTheGlass bool ClusterDomain string NoCrossNamespaceRefs bool // 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, revision string) (runner.RunnerClient, func() error, error)
func (*TerraformReconciler) 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. 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.
Source Files ¶
- source_predicate.go
- tf_controller.go
- tf_controller_apply.go
- tf_controller_backend.go
- tf_controller_drift_detect.go
- tf_controller_filemapping.go
- tf_controller_finalizer.go
- tf_controller_health_checks.go
- tf_controller_outputs.go
- tf_controller_plan.go
- tf_controller_reconcile.go
- tf_controller_runner.go
- tf_controller_webhooks.go