Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSealedBasicAuthSecret(name, service types.NamespacedName, token string, opts ...meta.ObjectMetaOpt) (*ssv1alpha1.SealedSecret, error)
- func CreateSealedDockerConfigSecret(name, service types.NamespacedName, in io.Reader) (*ssv1alpha1.SealedSecret, error)
- func CreateSealedSecret(name, service types.NamespacedName, data, secretKey string) (*ssv1alpha1.SealedSecret, error)
- func CreateUnsealedBasicAuthSecret(name, service types.NamespacedName, token string, opts ...meta.ObjectMetaOpt) *corev1.Secret
- func CreateUnsealedDockerConfigSecret(name, service types.NamespacedName, in io.Reader) (*corev1.Secret, error)
- func CreateUnsealedSecret(name, service types.NamespacedName, data, secretKey string) (*corev1.Secret, error)
- func GenerateString(length int) (string, error)
- func GetClusterPublicKey(service types.NamespacedName) (*rsa.PublicKey, error)
- func MakeServiceWebhookSecretName(envName, serviceName string) string
- type PublicKeyFunc
Constants ¶
const ( SealedSecretsController = "sealedsecretcontroller-sealed-secrets" SealedSecretsNS = "cicd" )
Variables ¶
var DefaultPublicKeyFunc = GetClusterPublicKey
DefaultPublicKeyFunc is the func used to get the key from Bitnami.
Functions ¶
func CreateSealedBasicAuthSecret ¶
func CreateSealedBasicAuthSecret(name, service types.NamespacedName, token string, opts ...meta.ObjectMetaOpt) (*ssv1alpha1.SealedSecret, error)
CreateSealedBasicAuthSecret creates a SealedSecret with a BasicAuth type secret.
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 CreateUnsealedBasicAuthSecret ¶ added in v0.0.25
func CreateUnsealedBasicAuthSecret(name, service types.NamespacedName, token string, opts ...meta.ObjectMetaOpt) *corev1.Secret
CreateUnsealedBasicAuthSecret creates a SealedSecret with a BasicAuth type secret.
func CreateUnsealedDockerConfigSecret ¶ added in v0.0.25
func CreateUnsealedDockerConfigSecret(name, service types.NamespacedName, in io.Reader) (*corev1.Secret, error)
CreateUnsealedDockerConfigSecret creates an Unsealed Secret with the given name and reader
func CreateUnsealedSecret ¶ added in v0.0.25
func GenerateString ¶
GenerateString creates a random secret of the desired length
func GetClusterPublicKey ¶
func GetClusterPublicKey(service types.NamespacedName) (*rsa.PublicKey, error)
GetClusterPublicKey retrieves a public key from sealed-secrets-service, by finding the service in the provided namespaced name and fetching its key.
func MakeServiceWebhookSecretName ¶
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