externalsecret

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSecretImmutable     = fmt.Errorf("secret is immutable")
	ErrSecretIsOwned       = fmt.Errorf("secret is owned by another ExternalSecret")
	ErrSecretSetCtrlRef    = fmt.Errorf("could not set controller reference on secret")
	ErrSecretRemoveCtrlRef = fmt.Errorf("could not remove controller reference on secret")
)

these errors are explicitly defined so we can detect them with `errors.Is()`.

Functions

func BuildManagedSecretClient added in v0.11.0

func BuildManagedSecretClient(mgr ctrl.Manager) (client.Client, error)

func GetExternalSecretCondition

GetExternalSecretCondition returns the condition with the provided type.

func NewExternalSecretCondition

func NewExternalSecretCondition(condType esv1beta1.ExternalSecretConditionType, status v1.ConditionStatus, reason, message string) *esv1beta1.ExternalSecretStatusCondition

NewExternalSecretCondition a set of default options for creating an External Secret Condition.

func SetExternalSecretCondition

func SetExternalSecretCondition(es *esv1beta1.ExternalSecret, condition esv1beta1.ExternalSecretStatusCondition)

SetExternalSecretCondition updates the external secret to include the provided condition.

Types

type Reconciler

type Reconciler struct {
	client.Client
	SecretClient              client.Client
	Log                       logr.Logger
	Scheme                    *runtime.Scheme
	RestConfig                *rest.Config
	ControllerClass           string
	RequeueInterval           time.Duration
	ClusterSecretStoreEnabled bool
	EnableFloodGate           bool
	// contains filtered or unexported fields
}

Reconciler reconciles a ExternalSecret object.

func (*Reconciler) Reconcile

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

Reconcile implements the main reconciliation loop for watched objects (ExternalSecret, ClusterSecretStore and SecretStore), and updates/creates a Kubernetes secret based on them.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error

SetupWithManager returns a new controller builder that will be started by the provided Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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