Skip to content

Commit 7b477d4

Browse files
authored
fix: support monitoring workspaces in other namespaces (#14)
1 parent 2016b04 commit 7b477d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

helm/templates/service.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: Role
33
metadata:
44
name: coder-xray-kube-role
5+
namespace: {{ .Values.namespace }}
56
rules:
67
- apiGroups: [""]
78
resources: ["pods", "events"]
@@ -21,13 +22,15 @@ apiVersion: rbac.authorization.k8s.io/v1
2122
kind: RoleBinding
2223
metadata:
2324
name: coder-xray-kube-rolebinding
25+
namespace: {{ .Values.namespace }}
2426
roleRef:
2527
apiGroup: rbac.authorization.k8s.io
2628
kind: Role
2729
name: coder-xray-kube-role
2830
subjects:
2931
- kind: ServiceAccount
3032
name: {{ .Values.serviceAccount.name | quote }}
33+
namespace: {{ .Release.Namespace }}
3134
---
3235
apiVersion: apps/v1
3336
kind: Deployment

0 commit comments

Comments
 (0)