Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ops v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ops.iflytek.com
Package v1alpha1 contains API Schema definitions for the ops v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ops.iflytek.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "ops.iflytek.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type ControllerSpec ¶
type ControllerSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file // Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html Size int32 `json:"size"` Image string `json:"image"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` Envs []corev1.EnvVar `json:"envs,omitempty"` Ports []corev1.ServicePort `json:"ports,omitempty"` MultiMaster bool `json:"multiMaster,omitempty"` VolumeSource corev1.VolumeSource `json:"volumeSource" protobuf:"bytes,2,opt,name=volumeSource"` }
func (*ControllerSpec) DeepCopy ¶
func (in *ControllerSpec) DeepCopy() *ControllerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllerSpec.
func (*ControllerSpec) DeepCopyInto ¶
func (in *ControllerSpec) DeepCopyInto(out *ControllerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MysqlOperator ¶
type MysqlOperator struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MysqlOperatorSpec `json:"spec,omitempty"` Status MysqlOperatorStatus `json:"status,omitempty"` }
MysqlOperator is the Schema for the mysqloperators API +kubebuilder:subresource:status +kubebuilder:resource:path=mysqloperators,scope=Namespaced
func (*MysqlOperator) DeepCopy ¶
func (in *MysqlOperator) DeepCopy() *MysqlOperator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlOperator.
func (*MysqlOperator) DeepCopyInto ¶
func (in *MysqlOperator) DeepCopyInto(out *MysqlOperator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MysqlOperator) DeepCopyObject ¶
func (in *MysqlOperator) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MysqlOperatorList ¶
type MysqlOperatorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MysqlOperator `json:"items"` }
MysqlOperatorList contains a list of MysqlOperator
func (*MysqlOperatorList) DeepCopy ¶
func (in *MysqlOperatorList) DeepCopy() *MysqlOperatorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlOperatorList.
func (*MysqlOperatorList) DeepCopyInto ¶
func (in *MysqlOperatorList) DeepCopyInto(out *MysqlOperatorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MysqlOperatorList) DeepCopyObject ¶
func (in *MysqlOperatorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MysqlOperatorSpec ¶
type MysqlOperatorSpec struct {
Mysql ControllerSpec `json:"mysql"`
}
MysqlOperatorSpec defines the desired state of MysqlOperator
func (*MysqlOperatorSpec) DeepCopy ¶
func (in *MysqlOperatorSpec) DeepCopy() *MysqlOperatorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlOperatorSpec.
func (*MysqlOperatorSpec) DeepCopyInto ¶
func (in *MysqlOperatorSpec) DeepCopyInto(out *MysqlOperatorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MysqlOperatorStatus ¶
type MysqlOperatorStatus struct { Nodes []string `json:"nodes"` appsv1.StatefulSetStatus `json:",inline"` }
MysqlOperatorStatus defines the observed state of MysqlOperator
func (*MysqlOperatorStatus) DeepCopy ¶
func (in *MysqlOperatorStatus) DeepCopy() *MysqlOperatorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlOperatorStatus.
func (*MysqlOperatorStatus) DeepCopyInto ¶
func (in *MysqlOperatorStatus) DeepCopyInto(out *MysqlOperatorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.