Documentation ¶
Index ¶
- func GetCertPart(data []byte, key string) ([]byte, error)
- func GetSHAFromSecret(data map[string][]byte) (string, error)
- func GetSecretData(secretObjData []*secretsyncv1alpha1.SecretObjectData, ...) (map[string][]byte, error)
- func GetSecretType(sType string) corev1.SecretType
- func ValidateSecretObject(secretObj secretsyncv1alpha1.SecretObject) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCertPart ¶
GetCertPart returns the certificate or the private key part of the cert
func GetSHAFromSecret ¶
GetSHAFromSecret gets SHA for the secret data
func GetSecretData ¶
func GetSecretData(secretObjData []*secretsyncv1alpha1.SecretObjectData, secretType corev1.SecretType, files map[string][]byte) (map[string][]byte, error)
GetSecretData gets the object contents from the pods target path and returns a map that will be populated in the Kubernetes secret data field
func GetSecretType ¶
func GetSecretType(sType string) corev1.SecretType
GetSecretType returns a k8s secret type. Kubernetes doesn't impose any constraints on the type name: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types If the secret type is empty, then default is Opaque.
func ValidateSecretObject ¶
func ValidateSecretObject(secretObj secretsyncv1alpha1.SecretObject) error
ValidateSecretObject performs basic validation of the secret provider class secret object to check if the mandatory fields - name, type and data are defined
Types ¶
This section is empty.