metrics-server icon indicating copy to clipboard operation
metrics-server copied to clipboard

Bring back configmap RBAC permissions

Open ViliusS opened this issue 3 years ago • 24 comments

What this PR does / why we need it: This change https://github.com/kubernetes-sigs/metrics-server/commit/4a65c6aeade18c8db98b3266a663d6f7962902b5 doesn't allow to run metrics-server in a separate namespace anymore.

Bring back at least configmap permissions to allow for extension-apiserver-authentication::client-ca-file retrieval.

ViliusS avatar May 04 '22 15:05 ViliusS

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: ViliusS / name: Vilius Šumskas (1677572fb01f3d8ab78a45074e0d1a8388a7f508)

Welcome @ViliusS!

It looks like this is your first PR to kubernetes-sigs/metrics-server 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/metrics-server has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar May 04 '22 15:05 k8s-ci-robot

Hi @ViliusS. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar May 04 '22 15:05 k8s-ci-robot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ViliusS To complete the pull request process, please assign serathius after the PR has been reviewed. You can assign the PR to them by writing /assign @serathius in a comment when ready.

The full list of commands accepted by this bot can be found 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

k8s-ci-robot avatar May 04 '22 15:05 k8s-ci-robot

Running metrics-server in different namespace than "kube-system" is not supported in official manifests.

serathius avatar May 04 '22 15:05 serathius

Running metrics-server in different namespace than "kube-system" is not supported in official manifests.

Even if it is so, previous change breaks compatibility.

BTW, we were using metrics-server in different namespace for the past 2 years without issues. With this commit, we can use it again.

ViliusS avatar May 04 '22 15:05 ViliusS

Breaking change cannot be breaking if the behavior that was broken was never officially supported.

I would need to see much more user impact to consider users using different namespace as valid use case. Users are free to modify official manifests, but this means they are expected to maintain the changes themselves. We just don't have enough capacity to support and test all possible configurations.

You might want to consider using official Helm chart as it supports running in different namespace.

serathius avatar May 04 '22 17:05 serathius

Not sure how helm chart is built, but it looks like template still contains the same permission I'm proposing to bring back in manifest https://github.com/kubernetes-sigs/metrics-server/blob/cd7cd4a936b76332423602ac82289da49d6066b1/charts/metrics-server/templates/clusterrole.yaml#L21 Maybe this is why metrics-server installed via Helm works.

ViliusS avatar May 04 '22 18:05 ViliusS

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Aug 02 '22 18:08 k8s-triage-robot

/remove-lifecycle stale

ViliusS avatar Aug 03 '22 06:08 ViliusS

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Nov 01 '22 06:11 k8s-triage-robot

/remove-lifecycle stale

ViliusS avatar Nov 01 '22 08:11 ViliusS

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Jan 30 '23 09:01 k8s-triage-robot

/remove-lifecycle stale

ViliusS avatar Jan 30 '23 09:01 ViliusS

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Apr 30 '23 09:04 k8s-triage-robot

/remove-lifecycle stale

ViliusS avatar May 01 '23 20:05 ViliusS

If this will not be supported upstream, you can change this behavior on your side, and before deploying your metric server, you can add that change.

@serathius, what are your thoughts here?

cpanato avatar Nov 28 '23 19:11 cpanato

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Feb 26 '24 19:02 k8s-triage-robot

/lifecycle stale

ViliusS avatar Feb 27 '24 17:02 ViliusS

/remove-lifecycle stale

ViliusS avatar Feb 27 '24 17:02 ViliusS

The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.

This bot triages PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the PR is closed

You can:

  • Mark this PR as fresh with /remove-lifecycle stale
  • Close this PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar May 27 '24 17:05 k8s-triage-robot

/remove-lifecycle stale

ViliusS avatar May 28 '24 06:05 ViliusS