Documentation ¶
Index ¶
- func GetSecretStoreCondition(status esapi.SecretStoreStatus, condType esapi.SecretStoreConditionType) *esapi.SecretStoreStatusCondition
- func NewSecretStoreCondition(condType esapi.SecretStoreConditionType, status v1.ConditionStatus, ...) *esapi.SecretStoreStatusCondition
- func SetExternalSecretCondition(gs esapi.GenericStore, condition esapi.SecretStoreStatusCondition, ...)
- func ShouldProcessStore(store esapi.GenericStore, class string) bool
- type ClusterStoreReconciler
- type Manager
- func (m *Manager) Close(ctx context.Context) error
- func (m *Manager) Get(ctx context.Context, storeRef esv1beta1.SecretStoreRef, namespace string, ...) (esv1beta1.SecretsClient, error)
- func (m *Manager) GetFromStore(ctx context.Context, store esv1beta1.GenericStore, namespace string) (esv1beta1.SecretsClient, error)
- type StoreReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecretStoreCondition ¶ added in v0.4.2
func GetSecretStoreCondition(status esapi.SecretStoreStatus, condType esapi.SecretStoreConditionType) *esapi.SecretStoreStatusCondition
GetSecretStoreCondition returns the condition with the provided type.
func NewSecretStoreCondition ¶ added in v0.4.2
func NewSecretStoreCondition(condType esapi.SecretStoreConditionType, status v1.ConditionStatus, reason, message string) *esapi.SecretStoreStatusCondition
NewSecretStoreCondition a set of default options for creating an External Secret Condition.
func SetExternalSecretCondition ¶ added in v0.4.2
func SetExternalSecretCondition(gs esapi.GenericStore, condition esapi.SecretStoreStatusCondition, gaugeVecGetter metrics.GaugeVevGetter)
SetExternalSecretCondition updates the external secret to include the provided condition.
func ShouldProcessStore ¶ added in v0.4.2
func ShouldProcessStore(store esapi.GenericStore, class string) bool
ShouldProcessStore returns true if the store should be processed.
Types ¶
type ClusterStoreReconciler ¶ added in v0.4.2
type ClusterStoreReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme ControllerClass string RequeueInterval time.Duration // contains filtered or unexported fields }
ClusterStoreReconciler reconciles a SecretStore object.
func (*ClusterStoreReconciler) SetupWithManager ¶ added in v0.4.2
func (r *ClusterStoreReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager returns a new controller builder that will be started by the provided Manager.
type Manager ¶ added in v0.7.0
type Manager struct {
// contains filtered or unexported fields
}
Manager stores instances of provider clients At any given time we must have no more than one instance of a client (due to limitations in GCP / see mutexlock there) If the controller requests another instance of a given client we will close the old client first and then construct a new one.
func NewManager ¶ added in v0.7.0
New constructs a new manager with defaults.
func (*Manager) Get ¶ added in v0.7.0
func (m *Manager) Get(ctx context.Context, storeRef esv1beta1.SecretStoreRef, namespace string, sourceRef *esv1beta1.StoreGeneratorSourceRef) (esv1beta1.SecretsClient, error)
Get returns a provider client from the given storeRef or sourceRef.secretStoreRef while sourceRef.SecretStoreRef takes precedence over storeRef. Do not close the client returned from this func, instead close the manager once you're done with recinciling the external secret.
func (*Manager) GetFromStore ¶ added in v0.7.0
func (m *Manager) GetFromStore(ctx context.Context, store esv1beta1.GenericStore, namespace string) (esv1beta1.SecretsClient, error)
type StoreReconciler ¶ added in v0.4.2
type StoreReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme RequeueInterval time.Duration ControllerClass string // contains filtered or unexported fields }
StoreReconciler reconciles a SecretStore object.
func (*StoreReconciler) SetupWithManager ¶ added in v0.4.2
func (r *StoreReconciler) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error
SetupWithManager returns a new controller builder that will be started by the provided Manager.