Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/prometheus-adapter] Remove colons from the ClusterRoleBinding resource name #23547

Closed
kofan opened this issue Aug 14, 2020 · 2 comments
Closed

Comments

@kofan
Copy link

kofan commented Aug 14, 2020

Describe the bug

The helm lint (for Helm 3.3) fails for the prometheus-adapter Helm chart because of the invalid resource name that is not compliant with Kubernetes name requirements. The error is the following:

templates/custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml: object name does not conform to Kubernetes naming requirements: "prometheus-adapter:system:auth-delegator"

Particularly, it does not like the colons in the resource name.
Helm uses the following regular expression to check the validity of a resource name:

^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$

I believe the name should become: prometheus-adapter-system-auth-delegator

Version of Helm and Kubernetes:

Helm: 3.3.0
Kubernetes: 1.18.7

Which chart:

stable/prometheus-adapter

What happened:

helm lint command fails

What you expected to happen:

helm lint command passes

How to reproduce it (as minimally and precisely as possible):

Using Helm 3.3 run the following commands:

helm repo add stable https://kubernetes-charts.storage.googleapis.com
helm pull stable/prometheus-adapter --untar
helm lint stable/prometheus-adapter

The output is:

==> Linting stable/prometheus-adapter
[INFO] Chart.yaml: icon is recommended
[ERROR] templates/custom-metrics-apiserver-auth-delegator-cluster-role-binding.yaml: object name does not conform to Kubernetes naming requirements: "prometheus-adapter:system:auth-delegator"

Error: 1 chart(s) linted, 1 chart(s) failed
@gkarthiks
Copy link
Contributor

Hi @kofan the stable/prometheus-adapter chart has been deprecated effectively as per this PR #23694 on Sep 5, 2020 and moved to https://github.com/prometheus-community/helm-charts.

Please close this Issue and re-open against the prometheus-community/helm-charts repo. Here's a friendly link for new issue

We hope to see you there. 👋

@kofan
Copy link
Author

kofan commented Sep 11, 2020

Re-opened here: prometheus-community/helm-charts#88

sijie added a commit to streamnative/charts that referenced this issue Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants