controller

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// Condition types
	TypeReady            = "Ready"
	TypeVaultUnsealed    = "VaultUnsealed"
	TypeUnsealJobCreated = "UnsealJobCreated"
	TypeSecretAvailable  = "SecretAvailable"
	TypeCACertAvailable  = "CACertAvailable"
	TypeVaultReachable   = "VaultReachable"

	// Condition reasons
	ReasonUnsealSuccessful = "UnsealSuccessful"
	ReasonUnsealFailed     = "UnsealFailed"
	ReasonVaultSealed      = "VaultSealed"
	ReasonJobCreated       = "JobCreated"
	ReasonJobFailed        = "JobFailed"
	ReasonSecretNotFound   = "SecretNotFound"
	ReasonSecretFound      = "SecretFound"
	ReasonCACertNotFound   = "CACertNotFound"
	ReasonCACertFound      = "CACertFound"
	ReasonVaultUnreachable = "VaultUnreachable"
	ReasonVaultReachable   = "VaultReachable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type UnsealReconciler

type UnsealReconciler struct {
	client.Client

	Scheme *runtime.Scheme
	// UnsealerImage holds the container image used for unsealing jobs, configured via the UNSEALER_IMAGE environment variable via kustomize.
	UnsealerImage string
	// contains filtered or unexported fields
}

UnsealReconciler reconciles a Unseal object

func (*UnsealReconciler) Reconcile

func (r *UnsealReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the Unseal 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.22.4/pkg/reconcile

func (*UnsealReconciler) SetupWithManager

func (r *UnsealReconciler) SetupWithManager(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