Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

servicemonitor is not created for missing role on camel-k-operator #1450

Closed
abouchama opened this issue May 6, 2020 · 1 comment · Fixed by #1453
Closed

servicemonitor is not created for missing role on camel-k-operator #1450

abouchama opened this issue May 6, 2020 · 1 comment · Fixed by #1453
Labels
kind/bug Something isn't working
Milestone

Comments

@abouchama
Copy link

We receive the following error when we enable the trait prometheus service monitor --trait prometheus.service-monitor=true:

Cannot reconcile Integration sample: error executing post actions: error during replace resource: could not create or replace resource sample: servicemonitors.monitoring.coreos.com is forbidden: User "system:serviceaccount:fuse7:camel-k-operator" cannot create resource "servicemonitors" in API group "monitoring.coreos.com" in the namespace "fuse7"

@abouchama
Copy link
Author

As workaround we have to apply the following

oc apply -f https://raw.githubusercontent.com/apache/camel-k/237ab293213ac2477f039e70afd28af412e4bcd1/deploy/operator-role-olm.yaml

in order to add the role servicemonitors.monitoring.coreos.com to camel-k-operator:

servicemonitors.monitoring.coreos.com [] [] [create delete deletecollection get list patch update watch]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants