Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords:
- prometheus
- kubernetes
type: application
version: 7.2.1
version: 7.2.2
# renovate: github-releases=kubernetes/kube-state-metrics
appVersion: 2.18.0
home: https://github.com/kubernetes/kube-state-metrics/
Expand Down
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ rules:
- subjectaccessreviews
verbs: ["create"]
{{- end }}
{{- if $.Values.customResourceState.enabled }}
{{- if and $.Values.customResourceState.enabled (default true $.Values.rbac.customResourceState.createClusterRoleRules) }}
- apiGroups: ["apiextensions.k8s.io"]
resources:
- customresourcedefinitions
Expand Down
3 changes: 3 additions & 0 deletions charts/kube-state-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ hostNetwork: false
rbac:
# If true, create & use RBAC resources
create: true
# If true, grants cluster-wide list/watch permissions for customresourcedefinitions when customResourceState.enabled is true
customResourceState:
createClusterRoleRules: true

# Set to a rolename to use existing role - skipping role creating - but still doing serviceaccount and rolebinding to it, rolename set here.
# useExistingRole: your-existing-role
Expand Down