sealer

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

https://github.com/kubernetes/kubernetes/blob/7fbb384e15e2fb8370513eab9443c5107df1b257/pkg/apis/core/validation/validation.go#L273

Functions

func EditSecretUntilOK added in v0.0.4

func EditSecretUntilOK(secretYAML []byte) ([]byte, error)

func EditWithEditor

func EditWithEditor(content []byte) (editedContent []byte, err error)

take content, open editor, then return edited content a.k.a. vipe

func EncryptRaw

func EncryptRaw(value []byte, secret corev1.Secret) (encryptedValue []byte, err error)

func GetEnv

func GetEnv(key string, fallback string) string

func GetKeyDiff

func GetKeyDiff(a map[string]string, b map[string]string) (keys []string)

given map A and B, returns list of keys only exists in map A if there is no such key, returns empty slice

func GetUpdatedExisting

func GetUpdatedExisting(a map[string]string, b map[string]string) (m map[string]string)

given map A and B, returns a map such that - key exists in both A and B - value of A(key) differs B(key)

func Seal

func Seal(secretYAML []byte, allowEmptyData bool) (sealedSecretYAML []byte, err error)

func Unseal

func Unseal(sealedSecretYAML []byte, sealedSecretsControllerNamespace string) (secretYAML []byte, err error)

func ValidateSecretYAML added in v0.0.4

func ValidateSecretYAML(secretYAML []byte) (field.ErrorList, error)

Types

Jump to

Keyboard shortcuts

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