Skip to content

Commit

Permalink
[prometheus-adapter] Make external.meterics cluster-role user settable
Browse files Browse the repository at this point in the history
Signed-off-by: Mao-Hsiang Lien <[email protected]>
  • Loading branch information
titanlien committed Nov 8, 2023
1 parent 8126eff commit 3c94e32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ metadata:
rules:
- apiGroups:
- "external.metrics.k8s.io"
resources:
- "*"
resources: {{ toYaml .Values.rbac.externalMetrics.resources | nindent 2 }}
verbs:
- list
- get
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ securityContext:
rbac:
# Specifies whether RBAC resources should be created
create: true
externalMetrics:
resources: ["*"]

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

0 comments on commit 3c94e32

Please sign in to comment.