controllers

package
v0.0.0-...-e8ce647 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUS_HEALTHY                 = "Healthy"
	STATUS_DECRYPT_ERROR           = "Decryption error"
	STATUS_CHILD_NOT_OWNED         = "Child secret is not owned by controller error"
	STATUS_CHILD_UPDATE_ERROR      = "Child secret update error"
	STATUS_CHILD_CREATION_ERROR    = "New child secret creation error"
	STATUS_SETTING_OWNERSHIP_ERROR = "Setting controller ownership of the child secret error"
	STATUS_RECONCILE_SUSPENDED     = "Reconciliation is suspended"
	STATUS_UNKNOWN_ERROR           = "Unknown Error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SopsSecretReconciler

type SopsSecretReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *runtime.Scheme
	RequeueAfter int64
}

SopsSecretReconciler reconciles a SopsSecret object

func (*SopsSecretReconciler) Reconcile

func (r *SopsSecretReconciler) 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. UPDATE-HERE For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.6/pkg/reconcile

func (*SopsSecretReconciler) SetupWithManager

func (r *SopsSecretReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*SopsSecretReconciler) UpdateSopsSecretStatus

func (r *SopsSecretReconciler) UpdateSopsSecretStatus(ctx context.Context, sopsSecret *isindirv1alpha3.SopsSecret, message string)

Jump to

Keyboard shortcuts

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