Documentation ¶
Index ¶
- Variables
- func FindVaultAuthByUID(ctx context.Context, c client.Client, namespace string, uid types.UID, ...) (*secretsv1alpha1.VaultAuth, error)
- func FindVaultAuthForStorageEncryption(ctx context.Context, c client.Client) (*secretsv1alpha1.VaultAuth, error)
- func FindVaultConnectionByUID(ctx context.Context, c client.Client, namespace string, uid types.UID, ...) (*secretsv1alpha1.VaultConnection, error)
- func GetConnectionNamespacedName(a *secretsv1alpha1.VaultAuth) (types.NamespacedName, error)
- func GetVaultAuth(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultAuth, error)
- func GetVaultAuthAndTarget(ctx context.Context, c client.Client, obj client.Object) (*secretsv1alpha1.VaultAuth, types.NamespacedName, error)
- func GetVaultAuthWithRetry(ctx context.Context, c client.Client, key types.NamespacedName, ...) (*secretsv1alpha1.VaultAuth, error)
- func GetVaultConnection(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultConnection, error)
- func GetVaultConnectionWithRetry(ctx context.Context, c client.Client, key types.NamespacedName, ...) (*secretsv1alpha1.VaultConnection, error)
- func GetVaultNamespace(obj client.Object) (string, error)
- func ValidateObjectKey(key ctrlclient.ObjectKey) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OperatorNamespace of the current operator instance, set in init() OperatorNamespace string InvalidObjectKeyError = fmt.Errorf("invalid objectKey") )
Functions ¶
func FindVaultAuthByUID ¶
func FindVaultAuthForStorageEncryption ¶
func FindVaultAuthForStorageEncryption(ctx context.Context, c client.Client) (*secretsv1alpha1.VaultAuth, error)
FindVaultAuthForStorageEncryption returns VaultAuth resource labeled with `cacheEncryption=true`, and is found in the Operator's namespace. If none or more than one resource is found, an error will be returned. The resulting resource must have a valid StorageEncryption configured.
func GetConnectionNamespacedName ¶
func GetConnectionNamespacedName(a *secretsv1alpha1.VaultAuth) (types.NamespacedName, error)
GetConnectionNamespacedName returns the NamespacedName for the VaultAuth's configured vaultConnectionRef. If the vaultConnectionRef is empty then defaults Namespace and Name will be returned.
func GetVaultAuth ¶
func GetVaultAuth(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultAuth, error)
func GetVaultAuthAndTarget ¶
func GetVaultAuthWithRetry ¶
func GetVaultConnection ¶
func GetVaultConnection(ctx context.Context, c client.Client, key types.NamespacedName) (*secretsv1alpha1.VaultConnection, error)
func GetVaultConnectionWithRetry ¶
func GetVaultConnectionWithRetry(ctx context.Context, c client.Client, key types.NamespacedName, delay time.Duration, max uint64) (*secretsv1alpha1.VaultConnection, error)
func GetVaultNamespace ¶
GetVaultNamespace for the Syncable Secret type object.
Supported types for obj are: VaultDynamicSecret, VaultStaticSecret. VaultPKISecret
func ValidateObjectKey ¶
func ValidateObjectKey(key ctrlclient.ObjectKey) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.