Skip to content

feat: add support for custom permissions in Helm chart rbac.yaml file #10590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 27, 2023
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