Describe the bug
If your render prometheus charts without psp, the clusterroles for alertmanager and pushgateways end up without any rules like:
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
labels:
mylabel: label
name: just-a-random-name
rules:
instead we need to add an empty array like:
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
labels:
mylabel: label
name: just-a-random-name
rules:
[]
Version of Helm and Kubernetes:
helm v2.14.3
k8s 1.13.x
Which chart:
stable/prometheus
What happened:
error: error validating "STDIN": error validating data: ValidationError(ClusterRole): missing required field "rules" in io.k8s.api.rbac.v1beta1.ClusterRole; if you choose to ignore these errors, turn validation off with --validate=false
What you expected to happen:
The ClusterRole should be applied successfully.
How to reproduce it (as minimally and precisely as possible):
deploy the chart without psp.
Anything else we need to know:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
This issue is being automatically closed due to inactivity.
It's completely broken you can't run a command to install charts anymore.
I ran the following command from the documentation
helm install --name my-release stable/prometheus
and I got the following error
Error: validation failed: error validating "": error validating data: ValidationError(ClusterRole): missing required field "rules" in io.k8s.api.rbac.v1beta1.ClusterRole
I have been waiting for a fix for multiple days and following this thread but no updates.
Does anyone has a solution ?
If you need to install this chart right now, you can use some earlier version
helm install prometheus stable/prometheus --version 9.0.0
I'm too waiting for a response from Prometheus Chart team =)
I'm experiencing the same issue. @yousafsyed , mind opening a new ticket with the information you posted above?
@chickenbeef I think we should keep the information in this thread, for now, I am using the version of chart 9.0.0 as mentioned by @djklim87