secret

package
v1.127.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizedLegacySecret added in v1.126.0

func NormalizedLegacySecret(ctx context.Context, r *v1alpha1.SecretKeyRef, reader client.Reader, otherNamespace string) ([]byte, error)

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:"-"`
}

+kubebuilder:object:generate:=true

func (*BasicAuthSecretRef) DeepCopy added in v1.126.0

func (in *BasicAuthSecretRef) DeepCopy() *BasicAuthSecretRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicAuthSecretRef.

func (*BasicAuthSecretRef) DeepCopyInto added in v1.126.0

func (in *BasicAuthSecretRef) DeepCopyInto(out *BasicAuthSecretRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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 Legacy added in v1.126.0

type Legacy struct {
	/* Value of the field. Cannot be used if 'valueFrom' is specified. */
	// +optional
	Value *string `json:"value,omitempty"`

	/* Source for the field's value. Cannot be used if 'value' is specified. */
	// +optional
	ValueFrom *LegacyValueFrom `json:"valueFrom,omitempty"`
}

+kubebuilder:object:generate:=true

func (*Legacy) DeepCopy added in v1.126.0

func (in *Legacy) DeepCopy() *Legacy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Legacy.

func (*Legacy) DeepCopyInto added in v1.126.0

func (in *Legacy) DeepCopyInto(out *Legacy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type LegacyValueFrom added in v1.126.0

type LegacyValueFrom struct {
	/* Reference to a value with the given key in the given Secret in the resource's namespace. */
	// +optional
	SecretKeyRef *v1alpha1.SecretKeyRef `json:"secretKeyRef,omitempty"`
}

+kubebuilder:object:generate:=true

func (*LegacyValueFrom) DeepCopy added in v1.126.0

func (in *LegacyValueFrom) DeepCopy() *LegacyValueFrom

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LegacyValueFrom.

func (*LegacyValueFrom) DeepCopyInto added in v1.126.0

func (in *LegacyValueFrom) DeepCopyInto(out *LegacyValueFrom)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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