Skip to content

Commit

Permalink
feat: cluster role binding (#314)
Browse files Browse the repository at this point in the history
* feat: cluster role binding

* feat: rename

* feat: rename
  • Loading branch information
CristhianF7 authored Mar 13, 2024
1 parent 6a02fc9 commit dc2c7ef
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
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

0 comments on commit dc2c7ef

Please sign in to comment.