secrets

package
v0.0.0-...-6644658 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPublicKeyFunc = GetClusterPublicKey

DefaultPublicKeyFunc is the func used to get the key from Bitnami.

Functions

func CreateSealedDockerConfigSecret

func CreateSealedDockerConfigSecret(name, service types.NamespacedName, in io.Reader) (*ssv1alpha1.SealedSecret, error)

CreateSealedDockerConfigSecret creates a SealedSecret with the given name and reader

func CreateSealedSecret

func CreateSealedSecret(name, service types.NamespacedName, data, secretKey string) (*ssv1alpha1.SealedSecret, error)

CreateSealedSecret creates a SealedSecret with the provided name and body/data and type

func GenerateString

func GenerateString(length int) (string, error)

GenerateString creates a random secret of the desired length

func GetClusterPublicKey

func GetClusterPublicKey(service types.NamespacedName) (*rsa.PublicKey, error)

Retrieves a public key from sealed-secrets-service, by finding the service in the provided namespaced name and fetching its key.

func MakeServiceWebhookSecretName

func MakeServiceWebhookSecretName(envName, serviceName string) string

MakeServiceWebhookSecretName common method to create service webhook secret name

Types

type PublicKeyFunc

type PublicKeyFunc func(service types.NamespacedName) (*rsa.PublicKey, error)

PublicKeyFunc retruns a public key give a service namedspaced name

Jump to

Keyboard shortcuts

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