tao12345666333 commented on code in PR #1728:
URL: 
https://github.com/apache/apisix-ingress-controller/pull/1728#discussion_r1162201280


##########
pkg/api/validation/utils.go:
##########
@@ -117,3 +117,10 @@ func ValidatePlugin(client apisix.Schema, pluginName 
string, pluginConfig interf
 
        return
 }
+
+func validateIngressClassName(oldIngressClassName, newIngressClass string) 
(bool, error) {
+       if oldIngressClassName != "" && oldIngressClassName != newIngressClass {
+               return false, fmt.Errorf("ingressClassName is not allowed to be 
modified")

Review Comment:
   ```suggestion
                return false, fmt.Errorf("The ingressClassName field is not 
allowed to be modified.")
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to