Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the fluent-pvc-operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=fluent-pvc-operator.tech.zozo.com
Index ¶
- Variables
- type FluentPVC
- type FluentPVCBinding
- func (in *FluentPVCBinding) DeepCopy() *FluentPVCBinding
- func (in *FluentPVCBinding) DeepCopyInto(out *FluentPVCBinding)
- func (in *FluentPVCBinding) DeepCopyObject() runtime.Object
- func (b *FluentPVCBinding) IsBindingPVC(pvc *corev1.PersistentVolumeClaim) bool
- func (b *FluentPVCBinding) IsBindingPod(pod *corev1.Pod) bool
- func (b *FluentPVCBinding) IsConditionFinalizerJobApplied() bool
- func (b *FluentPVCBinding) IsConditionFinalizerJobFailed() bool
- func (b *FluentPVCBinding) IsConditionFinalizerJobSucceeded() bool
- func (b *FluentPVCBinding) IsConditionOutOfUse() bool
- func (b *FluentPVCBinding) IsConditionReady() bool
- func (b *FluentPVCBinding) IsConditionUnknown() bool
- func (b *FluentPVCBinding) IsControlledBy(fpvc *FluentPVC) bool
- func (b *FluentPVCBinding) SetConditionFinalizerJobApplied(reason, message string)
- func (b *FluentPVCBinding) SetConditionFinalizerJobFailed(reason, message string)
- func (b *FluentPVCBinding) SetConditionFinalizerJobSucceeded(reason, message string)
- func (b *FluentPVCBinding) SetConditionNotFinalizerJobApplied(reason, message string)
- func (b *FluentPVCBinding) SetConditionNotFinalizerJobFailed(reason, message string)
- func (b *FluentPVCBinding) SetConditionNotFinalizerJobSucceeded(reason, message string)
- func (b *FluentPVCBinding) SetConditionNotOutOfUse(reason, message string)
- func (b *FluentPVCBinding) SetConditionNotReady(reason, message string)
- func (b *FluentPVCBinding) SetConditionNotUnknown(reason, message string)
- func (b *FluentPVCBinding) SetConditionOutOfUse(reason, message string)
- func (b *FluentPVCBinding) SetConditionReady(reason, message string)
- func (b *FluentPVCBinding) SetConditionUnknown(reason, message string)
- func (b *FluentPVCBinding) SetFluentPVC(fpvc *FluentPVC)
- func (b *FluentPVCBinding) SetPVC(pvc *corev1.PersistentVolumeClaim)
- func (b *FluentPVCBinding) SetPhasePending()
- func (b *FluentPVCBinding) SetPod(pod *corev1.Pod)
- type FluentPVCBindingConditionType
- type FluentPVCBindingList
- type FluentPVCBindingPhase
- type FluentPVCBindingSpec
- type FluentPVCBindingStatus
- type FluentPVCList
- type FluentPVCSpec
- type FluentPVCStatus
- type ObjectIdentity
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "fluent-pvc-operator.tech.zozo.com", 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 FluentPVC ¶
type FluentPVC struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FluentPVCSpec `json:"spec,omitempty"` Status FluentPVCStatus `json:"status,omitempty"` }
FluentPVC is the Schema for the fluentpvcs API +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster
func (*FluentPVC) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVC.
func (*FluentPVC) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluentPVC) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FluentPVCBinding ¶
type FluentPVCBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec FluentPVCBindingSpec `json:"spec,omitempty"` Status FluentPVCBindingStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:scope=Namespaced +kubebuilder:printcolumn:name="PHASE",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="FLUENTPVC",type="string",JSONPath=".spec.fluentPVC.name" +kubebuilder:printcolumn:name="POD",type="string",JSONPath=".spec.pod.name" +kubebuilder:printcolumn:name="PVC",type="string",JSONPath=".spec.pvc.name"
func (*FluentPVCBinding) DeepCopy ¶
func (in *FluentPVCBinding) DeepCopy() *FluentPVCBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVCBinding.
func (*FluentPVCBinding) DeepCopyInto ¶
func (in *FluentPVCBinding) DeepCopyInto(out *FluentPVCBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluentPVCBinding) DeepCopyObject ¶
func (in *FluentPVCBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FluentPVCBinding) IsBindingPVC ¶
func (b *FluentPVCBinding) IsBindingPVC(pvc *corev1.PersistentVolumeClaim) bool
func (*FluentPVCBinding) IsBindingPod ¶
func (b *FluentPVCBinding) IsBindingPod(pod *corev1.Pod) bool
func (*FluentPVCBinding) IsConditionFinalizerJobApplied ¶
func (b *FluentPVCBinding) IsConditionFinalizerJobApplied() bool
func (*FluentPVCBinding) IsConditionFinalizerJobFailed ¶
func (b *FluentPVCBinding) IsConditionFinalizerJobFailed() bool
func (*FluentPVCBinding) IsConditionFinalizerJobSucceeded ¶
func (b *FluentPVCBinding) IsConditionFinalizerJobSucceeded() bool
func (*FluentPVCBinding) IsConditionOutOfUse ¶
func (b *FluentPVCBinding) IsConditionOutOfUse() bool
func (*FluentPVCBinding) IsConditionReady ¶
func (b *FluentPVCBinding) IsConditionReady() bool
func (*FluentPVCBinding) IsConditionUnknown ¶
func (b *FluentPVCBinding) IsConditionUnknown() bool
func (*FluentPVCBinding) IsControlledBy ¶
func (b *FluentPVCBinding) IsControlledBy(fpvc *FluentPVC) bool
func (*FluentPVCBinding) SetConditionFinalizerJobApplied ¶
func (b *FluentPVCBinding) SetConditionFinalizerJobApplied(reason, message string)
func (*FluentPVCBinding) SetConditionFinalizerJobFailed ¶
func (b *FluentPVCBinding) SetConditionFinalizerJobFailed(reason, message string)
func (*FluentPVCBinding) SetConditionFinalizerJobSucceeded ¶
func (b *FluentPVCBinding) SetConditionFinalizerJobSucceeded(reason, message string)
func (*FluentPVCBinding) SetConditionNotFinalizerJobApplied ¶
func (b *FluentPVCBinding) SetConditionNotFinalizerJobApplied(reason, message string)
func (*FluentPVCBinding) SetConditionNotFinalizerJobFailed ¶
func (b *FluentPVCBinding) SetConditionNotFinalizerJobFailed(reason, message string)
func (*FluentPVCBinding) SetConditionNotFinalizerJobSucceeded ¶
func (b *FluentPVCBinding) SetConditionNotFinalizerJobSucceeded(reason, message string)
func (*FluentPVCBinding) SetConditionNotOutOfUse ¶
func (b *FluentPVCBinding) SetConditionNotOutOfUse(reason, message string)
func (*FluentPVCBinding) SetConditionNotReady ¶
func (b *FluentPVCBinding) SetConditionNotReady(reason, message string)
func (*FluentPVCBinding) SetConditionNotUnknown ¶
func (b *FluentPVCBinding) SetConditionNotUnknown(reason, message string)
func (*FluentPVCBinding) SetConditionOutOfUse ¶
func (b *FluentPVCBinding) SetConditionOutOfUse(reason, message string)
func (*FluentPVCBinding) SetConditionReady ¶
func (b *FluentPVCBinding) SetConditionReady(reason, message string)
func (*FluentPVCBinding) SetConditionUnknown ¶
func (b *FluentPVCBinding) SetConditionUnknown(reason, message string)
func (*FluentPVCBinding) SetFluentPVC ¶
func (b *FluentPVCBinding) SetFluentPVC(fpvc *FluentPVC)
func (*FluentPVCBinding) SetPVC ¶
func (b *FluentPVCBinding) SetPVC(pvc *corev1.PersistentVolumeClaim)
func (*FluentPVCBinding) SetPhasePending ¶
func (b *FluentPVCBinding) SetPhasePending()
func (*FluentPVCBinding) SetPod ¶
func (b *FluentPVCBinding) SetPod(pod *corev1.Pod)
type FluentPVCBindingConditionType ¶
type FluentPVCBindingConditionType string
const ( FluentPVCBindingConditionReady FluentPVCBindingConditionType = "Ready" FluentPVCBindingConditionOutOfUse FluentPVCBindingConditionType = "OutOfUse" FluentPVCBindingConditionFinalizerJobApplied FluentPVCBindingConditionType = "FinalizerJobApplied" FluentPVCBindingConditionFinalizerJobSucceeded FluentPVCBindingConditionType = "FinalizerJobSucceeded" FluentPVCBindingConditionFinalizerJobFailed FluentPVCBindingConditionType = "FinalizerJobFailed" FluentPVCBindingConditionUnknown FluentPVCBindingConditionType = "Unknown" )
type FluentPVCBindingList ¶
type FluentPVCBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FluentPVCBinding `json:"items"` }
FluentPVCList contains a list of FluentPVC +kubebuilder:object:root=true
func (*FluentPVCBindingList) DeepCopy ¶
func (in *FluentPVCBindingList) DeepCopy() *FluentPVCBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVCBindingList.
func (*FluentPVCBindingList) DeepCopyInto ¶
func (in *FluentPVCBindingList) DeepCopyInto(out *FluentPVCBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluentPVCBindingList) DeepCopyObject ¶
func (in *FluentPVCBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FluentPVCBindingPhase ¶
type FluentPVCBindingPhase string
const ( FluentPVCBindingPhasePending FluentPVCBindingPhase = "Pending" FluentPVCBindingPhaseReady FluentPVCBindingPhase = FluentPVCBindingPhase(FluentPVCBindingConditionReady) FluentPVCBindingPhaseOutOfUse FluentPVCBindingPhase = FluentPVCBindingPhase(FluentPVCBindingConditionOutOfUse) FluentPVCBindingPhaseFinalizerJobApplied FluentPVCBindingPhase = FluentPVCBindingPhase(FluentPVCBindingConditionFinalizerJobApplied) FluentPVCBindingPhaseFinalizerJobSucceeded FluentPVCBindingPhase = FluentPVCBindingPhase(FluentPVCBindingConditionFinalizerJobSucceeded) FluentPVCBindingPhaseFinalizerJobFailed FluentPVCBindingPhase = FluentPVCBindingPhase(FluentPVCBindingConditionFinalizerJobFailed) FluentPVCBindingPhaseUnknown FluentPVCBindingPhase = FluentPVCBindingPhase(FluentPVCBindingConditionUnknown) )
type FluentPVCBindingSpec ¶
type FluentPVCBindingSpec struct { // FluentPVC Name to bind. //+kubebuilder:validation:Required FluentPVC ObjectIdentity `json:"fluentPVC"` // PVC Name to bind. //+kubebuilder:validation:Required PVC ObjectIdentity `json:"pvc"` // Pod Name to bind. //+kubebuilder:validation:Required Pod ObjectIdentity `json:"pod"` }
func (*FluentPVCBindingSpec) DeepCopy ¶
func (in *FluentPVCBindingSpec) DeepCopy() *FluentPVCBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVCBindingSpec.
func (*FluentPVCBindingSpec) DeepCopyInto ¶
func (in *FluentPVCBindingSpec) DeepCopyInto(out *FluentPVCBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluentPVCBindingStatus ¶
type FluentPVCBindingStatus struct { // Conditions is an array of conditions. //+patchMergeKey=type //+patchStrategy=merge //+listType=map //+listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` // Phase is the latest condition. Phase FluentPVCBindingPhase `json:"phase,omitempty"` }
FluentPVCStatus defines the observed state of FluentPVC
func (*FluentPVCBindingStatus) DeepCopy ¶
func (in *FluentPVCBindingStatus) DeepCopy() *FluentPVCBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVCBindingStatus.
func (*FluentPVCBindingStatus) DeepCopyInto ¶
func (in *FluentPVCBindingStatus) DeepCopyInto(out *FluentPVCBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluentPVCList ¶
type FluentPVCList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []FluentPVC `json:"items"` }
FluentPVCList contains a list of FluentPVC +kubebuilder:object:root=true
func (*FluentPVCList) DeepCopy ¶
func (in *FluentPVCList) DeepCopy() *FluentPVCList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVCList.
func (*FluentPVCList) DeepCopyInto ¶
func (in *FluentPVCList) DeepCopyInto(out *FluentPVCList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FluentPVCList) DeepCopyObject ¶
func (in *FluentPVCList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FluentPVCSpec ¶
type FluentPVCSpec struct { // PVC spec template to inject into pod manifests. //+kubebuilder:validation:Required PVCSpecTemplate corev1.PersistentVolumeClaimSpec `json:"pvcSpecTemplate"` // Job template to finalize PVCs. //+kubebuilder:validation:Required PVCFinalizerJobSpecTemplate batchv1.JobSpec `json:"pvcFinalizerJobSpecTemplate"` // Name of the Volume to mount the PVC. // Must be a DNS_LABEL and unique within the pod // ref. https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names //+kubebuilder:validation:Required PVCVolumeName string `json:"pvcVolumeName"` // Path to mount the PVC. // Must not contain ':' //+kubebuilder:validation:Required PVCVolumeMountPath string `json:"pvcVolumeMountPath"` // Sidecare containers template. //+kubebuilder:validation:Required SidecarContainerTemplate corev1.Container `json:"sidecarContainerTemplate"` // Common environment variables to inject into all containers. //+optional CommonEnvs []corev1.EnvVar `json:"commonEnvs,omitempty"` // Common volumes to inject into all pods. //+optional CommonVolumes []corev1.Volume `json:"commonVolumes,omitempty"` // Common volumeMounts to inject into all containers. //+optional CommonVolumeMounts []corev1.VolumeMount `json:"commonVolumeMounts,omitempty"` // Delete the pod if the sidecar container termination is detected. //+kubebuilder:validation:Required DeletePodIfSidecarContainerTerminationDetected bool `json:"deletePodIfSidecarContainerTerminationDetected,omitempty"` }
FluentPVCSpec defines the desired state of FluentPVC
func (*FluentPVCSpec) DeepCopy ¶
func (in *FluentPVCSpec) DeepCopy() *FluentPVCSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVCSpec.
func (*FluentPVCSpec) DeepCopyInto ¶
func (in *FluentPVCSpec) DeepCopyInto(out *FluentPVCSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FluentPVCStatus ¶
type FluentPVCStatus struct { // Conditions is an array of conditions. // Known .status.conditions.type are: "Ready" //+patchMergeKey=type //+patchStrategy=merge //+listType=map //+listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty"` }
FluentPVCStatus defines the observed state of FluentPVC
func (*FluentPVCStatus) DeepCopy ¶
func (in *FluentPVCStatus) DeepCopy() *FluentPVCStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FluentPVCStatus.
func (*FluentPVCStatus) DeepCopyInto ¶
func (in *FluentPVCStatus) DeepCopyInto(out *FluentPVCStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectIdentity ¶
type ObjectIdentity struct { // Object Name //+kubebuilder:validation:Required Name string `json:"name"` // Object UID //+kubebuilder:validation:Required UID types.UID `json:"uid"` }
func (*ObjectIdentity) DeepCopy ¶
func (in *ObjectIdentity) DeepCopy() *ObjectIdentity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectIdentity.
func (*ObjectIdentity) DeepCopyInto ¶
func (in *ObjectIdentity) DeepCopyInto(out *ObjectIdentity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.