diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index b632819..a65aed5 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -2,6 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: coder-xray-kube-role + namespace: {{ .Values.namespace }} rules: - apiGroups: [""] resources: ["pods", "events"] @@ -21,6 +22,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: coder-xray-kube-rolebinding + namespace: {{ .Values.namespace }} roleRef: apiGroup: rbac.authorization.k8s.io kind: Role @@ -28,6 +30,7 @@ roleRef: subjects: - kind: ServiceAccount name: {{ .Values.serviceAccount.name | quote }} + namespace: {{ .Release.Namespace }} --- apiVersion: apps/v1 kind: Deployment