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
Add support for specifying plan using K8S names. (#1377)
* Add support for specifying plan using K8S names.
* some wording clarifications and forgot to check in the admission controller file change
* fix e2e tests
allErrs=append(allErrs, field.Invalid(field.NewPath("spec").Child("updateRequests"), new.Spec.UpdateRequests, "new updateRequests value must not be less than the old one"))
253
+
allErrs=append(allErrs, field.Invalid(specFieldPath.Child("updateRequests"), new.Spec.UpdateRequests, "new updateRequests value must not be less than the old one"))
263
254
}
264
255
265
256
returnallErrs
@@ -309,3 +300,62 @@ func ValidateServiceInstanceReferencesUpdate(new *sc.ServiceInstance, old *sc.Se
// Can't specify both External and k8s name but must specify one.
314
+
ifexternalClassSet==k8sClassSet {
315
+
allErrs=append(allErrs, field.Required(fldPath.Child("externalClusterServiceClassName"), "exactly one of externalClusterServiceClassName or clusterServiceClassName required"))
316
+
allErrs=append(allErrs, field.Required(fldPath.Child("clusterServiceClassName"), "exactly one of externalClusterServiceClassName or clusterServiceClassName required"))
317
+
}
318
+
// Can't specify both External and k8s name but must specify one.
319
+
ifexternalPlanSet==k8sPlanSet {
320
+
allErrs=append(allErrs, field.Required(fldPath.Child("externalClusterServicePlanName"), "either externalClusterServicePlanName or clusterServicePlanName required"))
321
+
allErrs=append(allErrs, field.Required(fldPath.Child("clusterServicePlanName"), "exactly one of externalClusterServicePlanName or clusterServicePlanName required"))
0 commit comments