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

add service account with correct roles to telemeter-client #35

Merged
merged 2 commits into from Oct 1, 2018

Conversation

squat
Copy link
Contributor

@squat squat commented Sep 28, 2018

In order to authenticate against a Prometheus k8s pod created by the Cluster Monitoring Operator, the bearer token must belong to a ServiceAccount with the following SAR {"resource":"namespaces","verb":"get"} [0]

[0] https://github.com/openshift/cluster-monitoring-operator/blob/master/jsonnet/prometheus.jsonnet#L290

cc @s-urbaniak

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 28, 2018
Copy link
Contributor

@s-urbaniak s-urbaniak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 1, 2018
@openshift-merge-robot openshift-merge-robot merged commit c87418d into openshift:master Oct 1, 2018
@squat squat deleted the serviceaccount branch October 1, 2018 14:32
@brancz
Copy link
Contributor

brancz commented Oct 15, 2018

For consistency I think it would make sense to rather bind to the cluster-monitoring-view Role, because if we change that one the telemeter ClusterRole now would have to be adapted as well.

@squat
Copy link
Contributor Author

squat commented Oct 15, 2018

@brancz great idea. I'll test this and make a new pr

marcolan018 referenced this pull request in stolostron/metrics-collector Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants