Documentation ¶
Index ¶
- Constants
- func AddInjectionAnnotation(t *meta.Tags, secretName string, containers []string) error
- func AddInjectionAnnotationCassandraContainers(t *meta.Tags, secretName string) error
- func AddInjectionAnnotationMedusaContainers(t *meta.Tags, secretName string) error
- func AddInjectionAnnotationReaperContainers(t *meta.Tags, secretName string) error
- func DefaultSuperuserSecretName(clusterName string) string
- func HasReplicatedSecrets(ctx context.Context, c client.Client, kcKey client.ObjectKey, ...) bool
- func ReconcileReplicatedSecret(ctx context.Context, c client.Client, scheme *runtime.Scheme, ...) error
- func ReconcileSecret(ctx context.Context, c client.Client, secretName string, ...) error
- type SecretInjection
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"
)
View Source
const (
SecretInjectionAnnotation = "k8ssandra.io/inject-secret"
)
e.g. k8ssandra.io/inject-secret: '[{ "name": "test-secret", "path": "/etc/test/test-secret", "containers": ["c1", "c2"]}]'
Variables ¶
This section is empty.
Functions ¶
func AddInjectionAnnotation ¶ added in v1.7.0
func AddInjectionAnnotationCassandraContainers ¶ added in v1.7.0
func AddInjectionAnnotationMedusaContainers ¶ added in v1.7.0
func AddInjectionAnnotationReaperContainers ¶ added in v1.7.0
func DefaultSuperuserSecretName ¶
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 ¶
Types ¶
type SecretInjection ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.