secret

package
v1.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 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 follows the convention from k8ssandra Helm charts

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