secret

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// OrphanResourceAnnotation when set to true prevents the deletion of secret from target clusters even if matching ReplicatedSecret is removed
	OrphanResourceAnnotation = "replicatedresource.k8ssandra.io/orphan"
)

Variables

This section is empty.

Functions

func DefaultSuperuserSecretName

func DefaultSuperuserSecretName(clusterName string) string

DefaultSuperuserSecretName returns a default name for the superuser secret. It is of the general form <cluster_name>-superuser. Note that we expect clusterName to be a valid DNS subdomain name as defined in RFC 1123, otherwise the secret name won't be valid.

func HasReplicatedSecrets

func HasReplicatedSecrets(ctx context.Context, c client.Client, kcKey client.ObjectKey, targetContext string) bool

func ReconcileReplicatedSecret

func ReconcileReplicatedSecret(ctx context.Context, c client.Client, scheme *runtime.Scheme, kc *api.K8ssandraCluster, logger logr.Logger) error

ReconcileReplicatedSecret ensures that the correct replicatedSecret for all managed secrets is created

func ReconcileSecret

func ReconcileSecret(ctx context.Context, c client.Client, secretName string, kcKey client.ObjectKey) error

ReconcileSecret creates a new secret with proper "managed-by" annotations, or ensure the existing secret has such annotations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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