remove unused field

Signed-off-by: Howard Lau <howardlau1999@hotmail.com>
This commit is contained in:
Howard Lau 2020-10-28 05:09:01 +00:00
parent 4f59aa4ada
commit ef177093c7
No known key found for this signature in database
GPG Key ID: 5CCC55849E3CF8E2
2 changed files with 2 additions and 16 deletions

View File

@ -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"`
VolumeServerDiskCount int32 `json:"volumeServerDiskCount,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"`
}

View File

@ -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
}