secret

package
v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizedSecret

func NormalizedSecret(ctx context.Context, r SecretRef, reader client.Reader, otherNamespace string) error

Types

type BasicAuthSecretRef

type BasicAuthSecretRef struct {
	// +required
	// The `metadata.name` field of a Kubernetes `Secret`
	Name string `json:"name,omitempty"`
	// The `metadata.namespace` field of a Kubernetes `Secret`.
	Namespace string `json:"namespace,omitempty"`

	// The public field with json:"-" tag is to skip the field
	// in the CRD, and bypass "the unexported field error"
	// when controller-gen parses the Unstructured object to a typed object.
	Username string `json:"-"`
	Password string `json:"-"`
}

func (*BasicAuthSecretRef) GetName

func (b *BasicAuthSecretRef) GetName() string

func (*BasicAuthSecretRef) GetNamespace

func (b *BasicAuthSecretRef) GetNamespace() string

func (*BasicAuthSecretRef) Set

func (b *BasicAuthSecretRef) Set(secret *corev1.Secret) error

type SecretRef

type SecretRef interface {
	GetName() string
	GetNamespace() string
	Set(*corev1.Secret) error
}

Jump to

Keyboard shortcuts

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