constants

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelStatefulSetName = OperatorID + "/stateful-set"
	LabelExternal        = OperatorID + "/external"
)

LabelStatefulSetName is the label used to identify stateful sets managed by the operator.

View Source
const (
	AnnotationExternalSource  = LabelExternal + "-source"
	AnnotationExternalTargets = LabelExternal + "-targets"
)
View Source
const (
	EnvDevelopmentModeSchema       = "UNSEALER_DEVELOPMENT_MODE_SCHEMA"
	EnvDevelopmentModeK8sTokenFile = "UNSEALER_DEVELOPMENT_MODE_K8S_TOKEN_FILE"
	EnvDeploymentName              = "UNSEALER_DEPLOYMENT_NAME"
	EnvVaultAddr                   = "VAULT_ADDR"
	EnvNamespace                   = "UNSEALER_NAMESPACE"
	EnvPodName                     = "UNSEALER_POD_NAME"
	EnvPodIP                       = "UNSEALER_POD_IP"
)

Environment variable names

View Source
const (
	KeyPassword        = "password"
	KeyPrefixUnsealKey = "unsealKey"
	KeySecretPath      = "secretPath"
	KeyUsername        = "username"
	KeyRole            = "role"
	KeyMountPath       = "mountPath"
)

Secret key names

View Source
const ContainerNameVault = "vault"

ContainerNameVault is the default vault container name

View Source
const DefaultExternalInterval = 20 * time.Minute
View Source
const OperatorID = "vault-unsealer.bakito.net"

OperatorID is the unique identifier for the vault-unsealer operator.

Variables

This section is empty.

Functions

func DevFlag added in v0.2.0

func DevFlag(name string) (string, bool)

DevFlag returns the value of the given environment variable if development mode is enabled.

func IsDevMode added in v0.2.0

func IsDevMode() bool

IsDevMode checks if development mode is enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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