remove unused field
Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
parent
4f59aa4ada
commit
ef177093c7
|
@ -46,13 +46,7 @@ type SeaweedSpec struct {
|
|||
// Filer
|
||||
Filer *FilerSpec `json:"filer,omitempty"`
|
||||
|
||||
// VolumeServerCount is the number of volume servers, default to 1
|
||||
VolumeServerCount int32 `json:"volumeServerCount,omitempty"`
|
||||
VolumeServerDiskCount int32 `json:"volumeServerDiskCount,omitempty"`
|
||||
VolumeServerDiskSizeInGiB int32 `json:"volumeServerDiskSizeInGiB,omitempty"`
|
||||
|
||||
// FilerCount is the number of filers, default to 1
|
||||
FilerCount int32 `json:"filerCount,omitempty"`
|
||||
|
||||
// ingress
|
||||
Hosts []string `json:"hosts"`
|
||||
|
@ -90,7 +84,7 @@ type FilerSpec struct {
|
|||
corev1.ResourceRequirements `json:",inline"`
|
||||
|
||||
// The desired ready replicas
|
||||
// +kubebuilder:validation:Minimum=0
|
||||
// +kubebuilder:validation:Minimum=1
|
||||
Replicas int32 `json:"replicas"`
|
||||
}
|
||||
|
||||
|
|
|
@ -50,14 +50,6 @@ func (r *SeaweedReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
|
|||
return result, err
|
||||
}
|
||||
|
||||
// temporary
|
||||
if seaweedCR.Spec.VolumeServerCount == 0 {
|
||||
seaweedCR.Spec.VolumeServerCount = 1
|
||||
}
|
||||
if seaweedCR.Spec.FilerCount == 0 {
|
||||
seaweedCR.Spec.FilerCount = 1
|
||||
}
|
||||
|
||||
if done, result, err = r.ensureMaster(seaweedCR); done {
|
||||
return result, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue