add changes to MasterSpec and MasterStatus
This commit is contained in:
parent
b346842ea3
commit
9859b72c74
|
@ -28,14 +28,15 @@ type MasterSpec struct {
|
||||||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
||||||
// Important: Run "make" to regenerate code after modifying this file
|
// Important: Run "make" to regenerate code after modifying this file
|
||||||
|
|
||||||
// Foo is an example field of Master. Edit Master_types.go to remove/update
|
// +kubebuilder:validation:Minimum=0
|
||||||
Foo string `json:"foo,omitempty"`
|
// Size is the size of the master deployment
|
||||||
|
Size int32 `json:"size"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// MasterStatus defines the observed state of Master
|
// MasterStatus defines the observed state of Master
|
||||||
type MasterStatus struct {
|
type MasterStatus struct {
|
||||||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
// Nodes are the names of the master pods
|
||||||
// Important: Run "make" to regenerate code after modifying this file
|
Nodes []string `json:"nodes"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// +kubebuilder:object:root=true
|
// +kubebuilder:object:root=true
|
||||||
|
|
|
@ -30,7 +30,7 @@ func (in *Master) DeepCopyInto(out *Master) {
|
||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
out.Spec = in.Spec
|
out.Spec = in.Spec
|
||||||
out.Status = in.Status
|
in.Status.DeepCopyInto(&out.Status)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Master.
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Master.
|
||||||
|
@ -101,6 +101,11 @@ func (in *MasterSpec) DeepCopy() *MasterSpec {
|
||||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *MasterStatus) DeepCopyInto(out *MasterStatus) {
|
func (in *MasterStatus) DeepCopyInto(out *MasterStatus) {
|
||||||
*out = *in
|
*out = *in
|
||||||
|
if in.Nodes != nil {
|
||||||
|
in, out := &in.Nodes, &out.Nodes
|
||||||
|
*out = make([]string, len(*in))
|
||||||
|
copy(*out, *in)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MasterStatus.
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MasterStatus.
|
||||||
|
|
Loading…
Reference in New Issue