open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
72 stars 98 forks source link

Bug: K3s agent could not create clusterrole if it already exists #3940

Open LiilyZhang opened 10 months ago

LiilyZhang commented 10 months ago

Agent log:

I1108 15:23:23.384525 13 api_objects.go:177] Kubernetes Worker: attempting to create object my-operator-clusterrole with GroupVersionResource rbac.authorization.k8s.io/v1, Resource=clusterroles E1108 15:23:23.399136 13 kubeworker.go:117] Kubernetes Worker: failed to process kube package after agreement negotiation: the server could not find the requested resource, clusterroles.rbac.authorization.k8s.io "my-operator-clusterrole" already exists

Agent should continue instead of failing the agreement in this case