Skip to content

Commit

Permalink
fix: support monitoring workspaces in other namespaces (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreya authored Feb 14, 2024
1 parent 2016b04 commit 7b477d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helm/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -21,13 +22,15 @@ 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
name: coder-xray-kube-role
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.name | quote }}
namespace: {{ .Release.Namespace }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit 7b477d4

Please sign in to comment.