Skip to content
Open
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.DS_Store
.DS_Store

.vscode
13 changes: 12 additions & 1 deletion charts/tooljet/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,15 @@ Return the appropriate apiVersion for autoscaling.
{{- else -}}
{{- print "autoscaling/v2beta2" -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{/*
Return the service account name
*/}}
{{- define "tooljet.serviceAccountName" -}}
{{- if .Values.apps.tooljet.serviceAccount.name -}}
{{- .Values.apps.tooljet.serviceAccount.name -}}
{{- else -}}
{{- include "tooljet.fullname" . -}}
{{- end -}}
{{- end -}}
3 changes: 3 additions & 0 deletions charts/tooljet/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
labels:
{{- include "tooljet.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.apps.tooljet.serviceAccount.create }}
serviceAccountName: {{ include "tooljet.serviceAccountName" . }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.apps.tooljet.deployment.image.repository }}:{{ .Values.apps.tooljet.deployment.image.tag }}"
Expand Down
12 changes: 12 additions & 0 deletions charts/tooljet/templates/serviceaccount.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.apps.tooljet.serviceAccount.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "tooljet.serviceAccountName" . }}
labels:
{{- include "tooljet.labels" . | nindent 4 }}
{{- if .Values.apps.tooljet.serviceAccount.annotations }}
annotations:
{{- toYaml .Values.apps.tooljet.serviceAccount.annotations | nindent 4 }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/tooljet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ apps:
port: 80
targetPort: 3000
type: ClusterIP
serviceAccount:
create: false
name: ""
annotations: {}

postgresql:
enabled: true
Expand Down