extsecrets

package
v0.0.182 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 added in v0.0.129

func CopySecretToNamespace(kubeClient kubernetes.Interface, ns string, fromSecret *corev1.Secret) error

CopySecretToNamespace copies the given secret to the namespace

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

func SimplifyKey(backendType, key string) string

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

type Interface

type Interface interface {
	List(ns string, listOptions metav1.ListOptions) ([]*v1.ExternalSecret, error)
}

func NewClient

func NewClient(dynClient dynamic.Interface) (Interface, error)

NewClient creates a new client from the given dynamic client

Directories

Path Synopsis
gsm

Jump to

Keyboard shortcuts

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