Documentation ¶
Index ¶
- Constants
- Variables
- func CopySecretToNamespace(kubeClient kubernetes.Interface, ns string, fromSecret *corev1.Secret) error
- func DefaultHelmSecretFolder() string
- func FromUnstructured(u *unstructured.Unstructured, structured interface{}) error
- func SimplifyKey(backendType, key string) string
- func ToStructured(resource duck.OneOfOurs) (*unstructured.Unstructured, error)
- type Interface
Constants ¶
View Source
const ( // SchemaObjectAnnotation the annotation which contains the JSON encoded schema object definition SchemaObjectAnnotation = "secret.jenkins-x.io/schema-object" // ReplicateToAnnotation the annotation which lists the namespaces to replicate a Secret to when using local secrets ReplicateToAnnotation = "secret.jenkins-x.io/replicate-to" // ReplicaAnnotation the annotation on an ExternalSecret which is a replica ReplicaAnnotation = "secret.jenkins-x.io/replica" )
Variables ¶
View Source
var ( // ExternalSecretsResource the schema group version resource ExternalSecretsResource = schema.GroupVersionResource{Group: "kubernetes-client.io", Version: "v1", Resource: "externalsecrets"} )
Functions ¶
func CopySecretToNamespace ¶
func CopySecretToNamespace(kubeClient kubernetes.Interface, ns string, fromSecret *corev1.Secret) error
CopySecretToNamespace copies the given secret to the namespace
func DefaultHelmSecretFolder ¶
func DefaultHelmSecretFolder() string
DefaultHelmSecretFolder creates a default helm secret folder
func FromUnstructured ¶
func FromUnstructured(u *unstructured.Unstructured, structured interface{}) error
FromUnstructured converts from an unstructured object to a pointer to a structured type
func SimplifyKey ¶
SimplifyKey simplify the key to avoid unnecessary paths
func ToStructured ¶
func ToStructured(resource duck.OneOfOurs) (*unstructured.Unstructured, error)
ToStructured converts a resource to an unstructured type
Types ¶
Click to show internal directories.
Click to hide internal directories.