You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allErrs=append(allErrs, field.Forbidden(jdxPath.Child("capabilityFlavors"), "must not be set as CloudProfile does not define capabilities. Use regions instead."))
105
105
}
@@ -115,66 +115,37 @@ func validateCapabilityFlavors(providerImage apisaws.MachineImages, version apis
returnappend(allErrs, field.Required(jdxPath.Child("regions"), fmt.Sprintf("must provide at least one region for machine image %q and version %q", name, version)))
returnappend(allErrs, field.Required(jdxPath.Child("regions"), fmt.Sprintf("must provide at least one region for machine image %q and version %q", name, version)))
allErrs=append(allErrs, field.Required(kdxPath.Child("name"), "must provide a name"))
162
135
}
163
136
iflen(region.AMI) ==0 {
164
137
allErrs=append(allErrs, field.Required(kdxPath.Child("ami"), "must provide an ami"))
165
138
}
166
-
iflen(capabilityDefinitions) ==0 {
139
+
ifisCapabilityFlavor {
140
+
ifregion.Architecture!=nil {
141
+
allErrs=append(allErrs, field.Forbidden(kdxPath.Child("architecture"), "must not be set in capability flavor regions as architecture is defined via capabilities"))
// Validate the existence of the images the new/updated workers are to use. Validating the images used by old workers is not possible at this point, as they might
198
201
// have been removed from the CloudProfile already.
0 commit comments