Fix: Use metric server full name instead of name for clusterrole in helm chart#1801
Fix: Use metric server full name instead of name for clusterrole in helm chart#1801yesdeepakverma wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yesdeepakverma The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
|
|
Welcome @yesdeepakverma! |
|
Hi @yesdeepakverma. 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 Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
|
/ok-to-test |
|
/retest |
|
/triage accepted |
|
Looking for feedback. Let me know if something is required from my side. |
|
Hi @stevehipwell - please take a look. |
**This PR fixes the cluster role name to use helm chart full name instead of just the name which is default to metric-server **:
Almost all the resource except the APIService resource uses the
(include "metrics-server.fullname" .)to generate the resources names . The cluster in fix is only used to be aggregated to upstream admin/edit/viewer role as per the annotation specified in the cluster role.As per https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go#L375 and https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go#L396 and https://github.com/kubernetes/kubernetes/blob/master/plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy.go#L386, any role having these annotation will be aggregated to admin/edit/view role
Fixes #
This fix will help using the same naming convention as other resources in helm chart. This further will help users who have been managing the metric-server chart locally and wants to switch to upstream public helm chart for metric server. this will helm then install the helm chart without uninstalling the metric server chart first .
helm template command used to generate before and after the changes:
helm template my-release ./metrics-server