Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the iapetos.foundary-cloud.io v1 API group +kubebuilder:object:generate=true +groupName=iapetos.foundary-cloud.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "iapetos.foundary-cloud.io", Version: "v1"} // 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 PVCStatus ¶
type PVCStatus struct { Index *int32 `json:"index"` PVCName string `json:"pvcName"` Status corev1.PersistentVolumeClaimPhase `json:"status"` Capacity string `json:"capacity"` AccessModes []corev1.PersistentVolumeAccessMode `json:"accessModes"` StorageClass string `json:"storageClass"` PVName string `json:"pvName"` }
pvc 状态
type PodStatus ¶
type PodStatus struct { PodName string `json:"podName"` Status corev1.PodPhase `json:"status"` Index *int32 `json:"index"` NodeName string `json:"nodeName"` }
pod 状态
func (*PodStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodStatus.
func (*PodStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulPod ¶
type StatefulPod struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec StatefulPodSpec `json:"spec,omitempty"` Status StatefulPodStatus `json:"status,omitempty"` }
StatefulPod is the Schema for the statefulpods API
func (*StatefulPod) DeepCopy ¶
func (in *StatefulPod) DeepCopy() *StatefulPod
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulPod.
func (*StatefulPod) DeepCopyInto ¶
func (in *StatefulPod) DeepCopyInto(out *StatefulPod)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulPod) DeepCopyObject ¶
func (in *StatefulPod) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StatefulPodList ¶
type StatefulPodList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []StatefulPod `json:"items"` }
StatefulPodList contains a list of StatefulPod
func (*StatefulPodList) DeepCopy ¶
func (in *StatefulPodList) DeepCopy() *StatefulPodList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulPodList.
func (*StatefulPodList) DeepCopyInto ¶
func (in *StatefulPodList) DeepCopyInto(out *StatefulPodList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StatefulPodList) DeepCopyObject ¶
func (in *StatefulPodList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StatefulPodSpec ¶
type StatefulPodSpec struct { // +kubebuilder:validation:Minimum=1 Size *int32 `json:"size"` Selector *metav1.LabelSelector `json:"selector,omitempty"` PVRecyclePolicy corev1.PersistentVolumeReclaimPolicy `json:"pvRecyclePolicy,omitempty"` ServiceTemplate *corev1.ServiceSpec `json:"serviceTemplate,omitempty"` PodTemplate corev1.PodSpec `json:"podTemplate"` PVCTemplate *corev1.PersistentVolumeClaimSpec `json:"pvcTemplate,omitempty"` PVNames []string `json:"pvNames,omitempty"` }
StatefulPodSpec defines the desired state of StatefulPod
func (*StatefulPodSpec) DeepCopy ¶
func (in *StatefulPodSpec) DeepCopy() *StatefulPodSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulPodSpec.
func (*StatefulPodSpec) DeepCopyInto ¶
func (in *StatefulPodSpec) DeepCopyInto(out *StatefulPodSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StatefulPodStatus ¶
type StatefulPodStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file PodStatusMes []PodStatus `json:"podStatus,omitempty"` PVCStatusMes []PVCStatus `json:"pvcStatus,omitempty"` }
StatefulPodStatus defines the observed state of StatefulPod
func (*StatefulPodStatus) DeepCopy ¶
func (in *StatefulPodStatus) DeepCopy() *StatefulPodStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatefulPodStatus.
func (*StatefulPodStatus) DeepCopyInto ¶
func (in *StatefulPodStatus) DeepCopyInto(out *StatefulPodStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.