Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the secret-mangler.wreiner.at v1alpha1 API group +kubebuilder:object:generate=true +groupName=secret-mangler.wreiner.at
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "secret-mangler.wreiner.at", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type CascadeMode ¶
type CascadeMode string
CascadeMode describes edge cases in handling secret syncing. Only one of the following cascacde modes may be specified. If none of the following modes is specified, the default one is KeepNoAction. +kubebuilder:validation:Enum=KeepNoAction;KeepLostSync;RemoveLostSync;CascadeDelete
const ( // KeepNoAction keeps the secret the way it was initially created and no // sync of changes in referenced secrets is performed. KeepNoAction CascadeMode = "KeepNoAction" // KeepLostSync tries to sync data from referenced secrets. // If one or more sources are lost their data is kept as it was synced last. KeepLostSync CascadeMode = "KeepLostSync" // RemoveLostSync tries to sync data from referenced secrets. // If one or more sources re lost their data will be removed from the // created secret. // If no more sources are available and no fixed mappings are present the // secret will be removed as a whole. RemoveLostSync CascadeMode = "RemoveLostSync" // CascadeDelete removes the secret entirely if only one source is lost no // matter whether other sources are still present or not. CascadeDelete CascadeMode = "CascadeDelete" )
type SecretMangler ¶
type SecretMangler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SecretManglerSpec `json:"spec,omitempty"` Status SecretManglerStatus `json:"status,omitempty"` }
SecretMangler is the Schema for the secretmanglers API +kubebuilder:printcolumn:name="SecretCreated",type=boolean,JSONPath=`.status.secretCreated` +kubebuilder:printcolumn:name="LastAction",type=string,JSONPath=`.status.lastAction`
func (*SecretMangler) DeepCopy ¶
func (in *SecretMangler) DeepCopy() *SecretMangler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretMangler.
func (*SecretMangler) DeepCopyInto ¶
func (in *SecretMangler) DeepCopyInto(out *SecretMangler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretMangler) DeepCopyObject ¶
func (in *SecretMangler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretManglerList ¶
type SecretManglerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SecretMangler `json:"items"` }
SecretManglerList contains a list of SecretMangler
func (*SecretManglerList) DeepCopy ¶
func (in *SecretManglerList) DeepCopy() *SecretManglerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretManglerList.
func (*SecretManglerList) DeepCopyInto ¶
func (in *SecretManglerList) DeepCopyInto(out *SecretManglerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretManglerList) DeepCopyObject ¶
func (in *SecretManglerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SecretManglerSpec ¶
type SecretManglerSpec struct { // SecretTemplate is the template structure of the new secret to create. SecretTemplate SecretTemplateStruct `json:"secretTemplate"` }
SecretManglerSpec defines the desired state of SecretMangler
func (*SecretManglerSpec) DeepCopy ¶
func (in *SecretManglerSpec) DeepCopy() *SecretManglerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretManglerSpec.
func (*SecretManglerSpec) DeepCopyInto ¶
func (in *SecretManglerSpec) DeepCopyInto(out *SecretManglerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretManglerStatus ¶
type SecretManglerStatus struct { SecretCreated bool `json:"secretCreated"` LastAction string `json:"lastAction"` }
SecretManglerStatus defines the observed state of SecretMangler
func (*SecretManglerStatus) DeepCopy ¶
func (in *SecretManglerStatus) DeepCopy() *SecretManglerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretManglerStatus.
func (*SecretManglerStatus) DeepCopyInto ¶
func (in *SecretManglerStatus) DeepCopyInto(out *SecretManglerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretTemplateStruct ¶
type SecretTemplateStruct struct { Name string `json:"name"` APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Label string `json:"label,omitempty"` Namespace string `json:"namespace"` // Label metav1.LabelSelector `json:"label,omitempty"` // Namespace metav1.LabelSelector `json:"namespace"` Annotation map[string]string `json:"annotation,omitempty"` Mappings map[string]string `json:"mappings"` CascadeMode CascadeMode `json:"cascadeMode,omitempty"` }
func (*SecretTemplateStruct) DeepCopy ¶
func (in *SecretTemplateStruct) DeepCopy() *SecretTemplateStruct
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretTemplateStruct.
func (*SecretTemplateStruct) DeepCopyInto ¶
func (in *SecretTemplateStruct) DeepCopyInto(out *SecretTemplateStruct)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.