controller

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel = 2

	TFErrEventReason      = "TerraformError"
	TFPlanEventReason     = "TerraformPlan"
	TFApplyEventReason    = "TerraformApply"
	TFDestroyEventReason  = "TerraformDestroy"
	TFValidateEventReason = "TerraformValidate"

	// Terraform execution phases
	TFPhaseIdle         = ""
	TFPhaseInitializing = "Initializing"
	TFPhasePlanning     = "Planning"
	TFPhaseApplying     = "Applying"
	TFPhaseCompleted    = "Completed"
	TFPhaseErrored      = "Errored"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port                 string
	ProbeAddr            string
	LogLevel             string
	Namespace            string
	NamespaceLabel       string
	LeaderElectionID     string
	EnableLeaderElection bool
	WorkspacePath        string
}

func DefaultConfig

func DefaultConfig() Config

type TypedAnnotationChangedPredicate

type TypedAnnotationChangedPredicate[object metav1.Object] struct {
	predicate.TypedFuncs[object]
}

TypedAnnotationChangedPredicate implements a default update predicate function on annotation change.

func (TypedAnnotationChangedPredicate[object]) Update

func (TypedAnnotationChangedPredicate[object]) Update(e event.TypedUpdateEvent[object]) bool

Update implements default UpdateEvent filter for validating annotation change, allowing to ignore some annotations.

type WorkspaceReconciler

type WorkspaceReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder

	Tf       *runner.Exec
	Renderer render.Renderer
	// contains filtered or unexported fields
}

WorkspaceReconciler reconciles a Workspace object

func (*WorkspaceReconciler) Reconcile

func (r *WorkspaceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*WorkspaceReconciler) SetupWithManager

func (r *WorkspaceReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) 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