You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "renatomattos2912 (via GitHub)" <gi...@apache.org> on 2023/03/02 19:01:58 UTC

[GitHub] [apisix-ingress-controller] renatomattos2912 commented on issue #1003: bug: plugin_config_name is disappeared

renatomattos2912 commented on issue #1003:
URL: https://github.com/apache/apisix-ingress-controller/issues/1003#issuecomment-1452407568

   > ```yaml
   > apiVersion: apisix.apache.org/v2
   > kind: ApisixPluginConfig
   > metadata:
   >   name: public-endpoints
   > spec:
   >   plugins:
   >     - name: cors
   >       enable: true
   >       config:
   >         allow_origins: http://localhost:3000
   >         allow_credential: true
   >         allow_methods: "**"
   >         allow_headers: "**"
   >         expose_headers: "**"    
   > ---
   > apiVersion: apisix.apache.org/v2
   > kind: ApisixRoute
   > metadata:
   >   name: route-test
   > spec:
   >   http:
   >     - name: rule1
   >       match:
   >         hosts:
   >           - localhost
   >         paths:
   >           - /test
   >         methods:
   >           - OPTIONS
   >           - GET
   >       backends:
   >         - serviceName: httpbin
   >           servicePort: 80      
   >       plugin_config_name: public-endpoints 
   > ```
   > 
   > I mean to use admin-api to check. I use CRDs here. My operation steps are basically the same as yours. The same is true for crds configuration. Otherwise, it is meaningless to repeat.
   
   Got it, but yes, here it works in the API but not in the CRD. Are you using the same versions as mine for ingress controller, apisix e etc? If dont, please send me your versions, so i can try here.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org