Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add feature to enable permission to manage Kubernates services inside…
… helm
  • Loading branch information
lbi22 committed Nov 8, 2023
commit 494d7394a4b2e053e151d739c9932fe6ef7436f8
3 changes: 3 additions & 0 deletions helm/coder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ coder:
# coder.serviceAccount.enableDeployments -- Provides the service account permission
# to manage Kubernetes deployments.
enableDeployments: true
# coder.serviceAccount.enableServices -- Provides the service account permission
# to manage Kubernetes services.
enableServices: false
# coder.serviceAccount.annotations -- The Coder service account annotations.
annotations: {}
# coder.serviceAccount.name -- The service account name
Expand Down
13 changes: 13 additions & 0 deletions helm/libcoder/templates/_rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ rules:
- update
- watch
{{- end }}
{{- if .Values.coder.serviceAccount.enableServices }}
- apiGroups: [""]
resources: ["services"]
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down