Skip to content

Commit

Permalink
[prometheus-adapter] Make customer.meterics cluster-role user settable
Browse files Browse the repository at this point in the history
  • Loading branch information
titanlien committed Oct 31, 2023
1 parent 9210952 commit 17f4564
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ metadata:
rules:
- apiGroups:
- custom.metrics.k8s.io
resources: ["*"]
resources: {{ toYaml .Values.rbac.customMetrics.resources | nindent 2 }}
verbs: ["*"]
{{- end -}}
2 changes: 2 additions & 0 deletions charts/prometheus-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ rbac:
create: true
externalMetrics:
resources: ["*"]
customMetrics:
resources: ["*"]

psp:
# Specifies whether PSP resources should be created
Expand Down

0 comments on commit 17f4564

Please sign in to comment.