extsecrets

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 18 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

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

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) ([]*v1.ExternalSecret, error)
}

func NewClient

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

NewClient creates a new client from the given dynamic client

func NewFileClient

func NewFileClient(dir string) Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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