Skip to content

Commit e65fe3b

Browse files
matzhaugenalexellis
authored andcommitted
Add namespace to prom role
The helm template command does not output a Prometheus Role with a namespace, and will cause the prometheus deployment to crash. This PR adds a namespace to the helm template. Signed-off-by: Matz Haugen <[email protected]>
1 parent 89fa64d commit e65fe3b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chart/openfaas/templates/prometheus-rbac.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ apiVersion: rbac.authorization.k8s.io/v1
8383
kind: Role
8484
metadata:
8585
name: {{ .Release.Name }}-prometheus
86+
namespace: {{ .Release.Namespace | quote }}
8687
labels:
8788
app: {{ template "openfaas.name" . }}
8889
chart: {{ .Chart.Name }}-{{ .Chart.Version }}

0 commit comments

Comments
 (0)