secrets

package
v2.1.93 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SecretsLocationKey key in the config map which stored the location where the secrets are stored
	SecretsLocationKey = "secretsLocation"

	// VaultSecretPrefix is the key in the install config map which defines the secrets prefix under which to store secrets
	// in the Vault KV engine.
	VaultSecretPrefix = "vaultSecretsPrefix"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretLocation

type SecretLocation interface {
	// Location returns the location where the secrets are stored
	Location() SecretsLocationKind
	// SecretLocation configure the secrets location. It will save the
	// value in a config map if persist flag is set.
	SetLocation(location SecretsLocationKind, persist bool) error
}

SecretLocation interfaces to identify where is the secrets location

func NewSecretLocation

func NewSecretLocation(kubeClient kubernetes.Interface, namespace string) SecretLocation

NewSecretLocation creates a SecretLocation

type SecretsLocationKind

type SecretsLocationKind string

SecretsLocationKind type for secrets location kind

const (
	// FileSystemLocationKind indicates that secrets location is the file system
	FileSystemLocationKind SecretsLocationKind = "local"
	// VaultLocationKind indicates that secrets location is vault
	VaultLocationKind SecretsLocationKind = "vault"
	// KubeLocationKind indicates that secrets location is in Kubernetes
	KubeLocationKind SecretsLocationKind = "kube"
	// AutoLocationKind indicates that secrets location needs to be dynamically determine
	AutoLocationKind SecretsLocationKind = "auto"
)

func ToSecretsLocation

func ToSecretsLocation(location string) SecretsLocationKind

ToSecretsLocation converts a string to a SecretsLocationKind

Jump to

Keyboard shortcuts

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