yin6516008 commented on issue #854:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/854#issuecomment-1058879416


   
![image](https://user-images.githubusercontent.com/23651702/156710894-940aea93-a47f-4921-8810-cfd1e05894dc.png)
   
   I use the latest crd file. but apisixroute dispaly v2beta1.  I delete 
v2betav1、v2betav2 in the apisixroute, apply the route agin, the 
plugin_config_name appeared.
   
   Let's ignore the situation above. to pay attention to the following questions
   ```yaml
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixPluginConfig
   metadata:
     name: openapi-auth
     namespace: default
   spec:
     plugins:
       - name: authz-casbin
         enable: true
         config:
           model: "[request_definition]\nr = sub, obj, 
act\n[policy_definition]\np = sub, obj, act\n[role_definition]\ng = _, 
_\n[policy_effect]\ne = some(where (p.eft == allow))\n[matchers]\nm = g(r.sub, 
p.sub) && globMatch(r.obj,p.obj) && regexMatch(r.act,p.act)"
           policy: "p,test,/foo,POST\np,test2,/bar,POST"
           username: "user"
   ```
   When I apply this file, apisix-ingress-controller got below error
   ```bash
   2022-03-04T14:35:14+08:00    info    ingress/controller.go:609       service 
kube-system/ccm not found
   W0304 14:35:15.141661       1 reflector.go:441] 
pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: watch of 
*v2beta3.ApisixPluginConfig ended with: an error on the server ("unable to 
decode an event from the watch stream: unable to decode watch event: no kind 
\"ApisixPluginConfig\" is registered for version \"apisix.apache.org/v2beta3\" 
in scheme \"pkg/runtime/scheme.go:100\"") has prevented the request from 
succeeding
   [GIN] 2022/03/04 - 14:35:15 | 200 |       34.34µs |      172.30.0.1 | GET    
  "/healthz"
   W0304 14:35:16.287189       1 reflector.go:441] 
pkg/mod/k8s.io/[email protected]/tools/cache/reflector.go:167: watch of 
*v2beta3.ApisixPluginConfig ended with: an error on the server ("unable to 
decode an event from the watch stream: unable to decode watch event: no kind 
\"ApisixPluginConfig\" is registered for version \"apisix.apache.org/v2beta3\" 
in scheme \"pkg/runtime/scheme.go:100\"") has prevented the request from 
succeeding
   2022-03-04T14:35:16+08:00    info    ingress/controller.go:609       service 
kube-system/ccm not found
   ```
   I have tried many ways to no avail. Is there a problem with the format?
   
   


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