helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

ClusterRoleBinding requires Namespace

Open remissio opened this issue 2 years ago • 0 comments

https://github.com/mvisonneau/helm-charts/blob/3c50eb36c030336b7a7b68afb4d87203d91fd1e6/charts/gitlab-ci-pipelines-exporter/templates/serviceaccount.yaml#L21-L23

I'd like to suggest to insert the current Namespace:

subjects:
- kind: ServiceAccount
  name: {{ template "exporter.serviceAccountName" . }}
  namespace: {{ .Release.namespace }}

Kubernetes expects a namespace to be referenced within the ClusterRoleBinding resource. Currently when trying to apply this chart setting "rbac.enabled = true" helm fails.

remissio avatar Aug 24 '22 13:08 remissio