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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Metadata.
func (*Metadata) DeepCopyInto ¶
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 ¶
func (in *SecretInjectionConfig) DeepCopy() *SecretInjectionConfig
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.