We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbfe3ce commit 51afa9bCopy full SHA for 51afa9b
api/v1beta2/cloudstackcluster_webhook.go
@@ -59,7 +59,7 @@ func (r *CloudStackCluster) ValidateCreate() error {
59
var errorList field.ErrorList
60
61
// Require FailureDomains and their respective sub-fields.
62
- if len(r.Spec.FailureDomains) <= 0 {
+ if len(r.Spec.FailureDomains) == 0 {
63
errorList = append(errorList, field.Required(field.NewPath("spec", "FailureDomains"), "FailureDomains"))
64
} else {
65
for _, fdSpec := range r.Spec.FailureDomains { // Require failureDomain names meet k8s qualified name spec.
0 commit comments