Skip to content

Commit

Permalink
Add namespace to prom role
Browse files Browse the repository at this point in the history
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 <matz.haugen@cognite.com>
  • Loading branch information
matzhaugen authored and alexellis committed Feb 26, 2021
1 parent 89fa64d commit e65fe3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chart/openfaas/templates/prometheus-rbac.yaml
Expand Up @@ -83,6 +83,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ .Release.Name }}-prometheus
namespace: {{ .Release.Namespace | quote }}
labels:
app: {{ template "openfaas.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
Expand Down

0 comments on commit e65fe3b

Please sign in to comment.