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 'metrics-viewer' user to ClusterRoleBinding in metrics-viewer battery #3064

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

embik
Copy link
Member

@embik embik commented Dec 19, 2023

Summary

I've been thinking about how to get metrics out of kcp for the Helm chart. The metrics-viewer battery is a great starting point, but requires you to extract the service account token out of kcp, which seems hard to do.

This PR adds another entity to the ClusterRoleBinding subjects: A metrics-viewer user. In the Helm chart, we can create a certificate for that user entity and then pass that certificate as credentials to e.g. a ServiceMonitor for prometheus-operator. That seems to be the smoothest course of action to me.

Related issue(s)

Fixes #

Release Notes

Add a `metrics-viewer` user subject to the ClusterRoleBinding created by the battery `metrics-viewer`, for which credentials can be generated outside of kcp

@embik embik requested a review from mjudeikis December 19, 2023 07:17
@kcp-ci-bot kcp-ci-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has signed the DCO. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 19, 2023
@mjudeikis
Copy link
Contributor

/lgtm
/approve
nice one :) I was missing this part :D

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 19, 2023
@kcp-ci-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 3c7b0d33e1a7d10549a219efff9cda0d7dc557bb

@kcp-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mjudeikis

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 19, 2023
@kcp-ci-bot kcp-ci-bot merged commit 937a63f into kcp-dev:main Dec 19, 2023
16 checks passed
@embik embik deleted the add-user-to-metrics-viewer branch December 19, 2023 17:35
@embik
Copy link
Member Author

embik commented Jan 24, 2024

/kind feature

@kcp-ci-bot kcp-ci-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants