Closed asoorm closed 3 years ago
The linked code is a leader election role, which is not related to API definitions. Whichever role is responsible for the operator application will need cluster-level permissions for events added.
events firing removed - we don't really use it anyway.
Create an api definition then delete it. Check the tyk-operator logs. Looks like we need a ClusterRole, not just a Role.
https://github.com/TykTechnologies/tyk-operator/blob/master/helm/templates/all.yaml#L1-L33