dickens7 commented on issue #1375:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/1375#issuecomment-1295698042

   After merging #1409
   Multiple ApisixRoute refer to the same ApisixPluginConfig
   
   ```yaml
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: httpserver
   spec:
     http:
     - name: httpserver
       match:
         hosts:
           - local.httpbin.org
         paths:
           - /
       backends:
        - serviceName: httpbin
          servicePort: 80
       plugin_config_name: cors-plugins
   
   ---
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     name: httpserver2
   spec:
     http:
     - name: httpserver
       match:
         hosts:
           - local.httpbin.org
         paths:
           - /
       backends:
        - serviceName: httpbin
          servicePort: 80
       plugin_config_name: cors-plugins
   ```
   
   - error-log
   
   ```log
   2022-10-29T10:37:04+08:00       error   ingress/status.go:254   failed to 
record status change for ApisixPluginConfig   
   
   {
        "error": "Operation cannot be fulfilled on 
apisixpluginconfigs.apisix.apache.org \"cors-plugins\": the object has been 
modified; please apply your changes to the latest version and try again",
        "name": "cors-plugins",
        "namespace": "test"
   }
   ```


-- 
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