Skip to content
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

feat: cluster role binding #314

Merged
merged 3 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ tmp
launch.json
__debug_*
.env
kubefirst-api

16 changes: 16 additions & 0 deletions charts/kubefirst-api/templates/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- if .Values.serviceAccount.createClusterRoleBinding -}}
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubefirst-api-clusterrole
annotations:
argocd.argoproj.io/sync-wave: '0'
subjects:
- kind: ServiceAccount
name: kubefirst-kubefirst-api
namespace: kubefirst
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
{{- end }}
6 changes: 1 addition & 5 deletions charts/kubefirst-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ fullnameOverride: ''
serviceAccount:
# Specifies whether a service account should be created
create: true
createClusterRoleBinding: false
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
Expand Down Expand Up @@ -95,11 +96,6 @@ env: []
envFrom: []

existingSecret: ''
# defaults to in cluster mongodb, accepts a host name like `your-db.123abcd.mongodb.net`
atlasDbHost: ''
atlasDbUsername: ''
mongodbHost: ''
mongodbUsername: ''

initContainer:
enabled: false
Expand Down