Skip to content

Commit

Permalink
Disable validation of the Replicas in the Worker definition
Browse files Browse the repository at this point in the history
Effectively allowing to have 0 Replicas configured for initial cluster
setup, for later export and versioning in infra repositories.

Signed-off-by: Artiom Diomin <[email protected]>
  • Loading branch information
kron4eg committed Jan 15, 2020
1 parent 8f47866 commit 233086a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/apis/kubeone/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ func ValidateWorkerConfig(workerset []kubeone.WorkerConfig, fldPath *field.Path)
if w.Name == "" {
allErrs = append(allErrs, field.Invalid(fldPath, w.Name, "no name given"))
}
if w.Replicas == nil || *w.Replicas < 1 {
allErrs = append(allErrs, field.Invalid(fldPath, w.Replicas, "replicas must be specified and >= 1"))
}
}

return allErrs
Expand Down

0 comments on commit 233086a

Please sign in to comment.