common

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package common contains shared types that are used in multiple CRDs. +kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyInjection

type KeyInjection struct {
	// SecretKey is the key within the Kubernetes secret where the data will be injected.
	SecretKey string `json:"secretKey"`

	// ResponseJQ is a jq filter expression representing the path in the response where the secret value will be extracted from.
	ResponseJQ string `json:"responseJQ"`
}

KeyInjection represents the configuration for injecting data into a specific key in a Kubernetes secret.

func (*KeyInjection) DeepCopy

func (in *KeyInjection) DeepCopy() *KeyInjection

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

func (*KeyInjection) DeepCopyInto

func (in *KeyInjection) DeepCopyInto(out *KeyInjection)

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

type Metadata

type Metadata struct {
	// Labels contains key-value pairs to apply as labels to the Kubernetes secret.
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations contains key-value pairs to apply as annotations to the Kubernetes secret.
	Annotations map[string]string `json:"annotations,omitempty"`
}

Metadata contains labels and annotations to apply to a Kubernetes secret.

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

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

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

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

type SecretInjectionConfig

type SecretInjectionConfig struct {
	// SecretRef contains the name and namespace of the Kubernetes secret where the data will be injected.
	SecretRef SecretRef `json:"secretRef"`

	// SecretKey is the key within the Kubernetes secret where the data will be injected.
	// Deprecated: Use KeyMappings for injecting single or multiple keys.
	SecretKey string `json:"secretKey,omitempty"`

	// ResponsePath is a jq filter expression representing the path in the response where the secret value will be extracted from.
	// Deprecated: Use KeyMappings for injecting single or multiple keys.
	ResponsePath string `json:"responsePath,omitempty"`

	// KeyMappings allows injecting data into single or multiple keys within the same Kubernetes secret.
	KeyMappings []KeyInjection `json:"keyMappings,omitempty"`

	// Metadata contains labels and annotations to apply to the Kubernetes secret.
	Metadata Metadata `json:"metadata,omitempty"`

	// SetOwnerReference determines whether to set the owner reference on the Kubernetes secret.
	SetOwnerReference bool `json:"setOwnerReference,omitempty"`
}

SecretInjectionConfig represents the configuration for injecting secret data into a Kubernetes secret.

func (*SecretInjectionConfig) DeepCopy

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

func (*SecretInjectionConfig) DeepCopyInto

func (in *SecretInjectionConfig) DeepCopyInto(out *SecretInjectionConfig)

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

type SecretRef

type SecretRef struct {
	// Name is the name of the Kubernetes secret.
	Name string `json:"name"`

	// Namespace is the namespace of the Kubernetes secret.
	Namespace string `json:"namespace"`
}

SecretRef contains the name and namespace of a Kubernetes secret.

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

Jump to

Keyboard shortcuts

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