Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the redhatcop v1alpha1 API group +kubebuilder:object:generate=true +groupName=redhatcop.redhat.io
Index ¶
- Constants
- Variables
- type Patch
- func (in *Patch) DeepCopy() *Patch
- func (in *Patch) DeepCopyInto(out *Patch)
- func (in *Patch) DeepCopyObject() runtime.Object
- func (r *Patch) Default()
- func (r *Patch) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Patch) ValidateCreate() error
- func (r *Patch) ValidateDelete() error
- func (r *Patch) ValidateUpdate(old runtime.Object) error
- type PatchList
- type PatchSpec
- type PatchStatus
Constants ¶
const PatchControllerFinalizerName = "patch-controller"
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "redhatcop.redhat.io", 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 Patch ¶
type Patch struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PatchSpec `json:"spec,omitempty"`
Status PatchStatus `json:"status,omitempty"`
}
Patch is the Schema for the patches API
func (*Patch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Patch.
func (*Patch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Patch) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Patch) Default ¶
func (r *Patch) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*Patch) SetupWebhookWithManager ¶
func (*Patch) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Patch) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type PatchList ¶
type PatchList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Patch `json:"items"`
}
PatchList contains a list of Patch
func (*PatchList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchList.
func (*PatchList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PatchList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PatchSpec ¶
type PatchSpec struct {
// Patches is a list of patches that should be enforced at runtime.
// +kubebuilder:validation:Required
Patches map[string]utilsv1alpha1.PatchSpec `json:"patches,omitempty"`
// ServiceAccountRef is the service account to be used to run the controllers associated with this configuration
// +kubebuilder:validation:Required
// +kubebuilder:default={"name": "default"}
ServiceAccountRef corev1.LocalObjectReference `json:"serviceAccountRef,omitempty"`
}
PatchSpec defines the desired state of Patch
func (*PatchSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchSpec.
func (*PatchSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PatchStatus ¶
type PatchStatus struct {
// ReconcileStatus this is the general status of the main reconciler
// +kubebuilder:validation:Optional
// +listType=map
// +listMapKey=type
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
//PatchStatuses contains the reconcile status for each of the managed patch
// +kubebuilder:validation:Optional
PatchStatuses map[string]utilsv1alpha1.ConditionMap `json:"patchStatuses,omitempty"`
}
PatchStatus defines the observed state of Patch
func (*PatchStatus) DeepCopy ¶
func (in *PatchStatus) DeepCopy() *PatchStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PatchStatus.
func (*PatchStatus) DeepCopyInto ¶
func (in *PatchStatus) DeepCopyInto(out *PatchStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.