Documentation
¶
Overview ¶
Package secrets provides functions to manage and handle secrets
Index ¶
- func CopyOperatorPullSecretToServiceAccount(ctx context.Context, crudClient client.Client, ...) error
- func CreateObjectStorageSecret(ctx context.Context, crudClient client.Client, namespace, secretName string, ...) (*corev1.Secret, error)
- func CreateSecretCA(ctx context.Context, crudClient client.Client, ...) (*apiv1.Cluster, *certs.KeyPair, error)
- func GetCredentials(ctx context.Context, crudClient client.Client, ...) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyOperatorPullSecretToServiceAccount ¶ added in v1.29.0
func CopyOperatorPullSecretToServiceAccount( ctx context.Context, crudClient client.Client, operatorDeployment appsv1.Deployment, targetNamespace, serviceAccountName string, ) error
CopyOperatorPullSecretToServiceAccount copies the operator pull secret from the operator namespace to the target namespace and adds it as an imagePullSecret on the specified ServiceAccount. This is needed for shared ServiceAccounts that are not managed by the operator, so they can pull the operator image used by the bootstrap-controller init container. If no operator pull secret exists, this is a no-op.
func CreateObjectStorageSecret ¶
func CreateObjectStorageSecret( ctx context.Context, crudClient client.Client, namespace, secretName string, id, key string, ) (*corev1.Secret, error)
CreateObjectStorageSecret generates an Opaque Secret with a given ID and Key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.