Skip to content

Commit

Permalink
feat: render security context if present (#82)
Browse files Browse the repository at this point in the history
* render security context

* chore: increment chart version

* chore: render securityContext only if present

* chore: increment chart version

* chore: render securityContext only if present in migrations job

Co-authored-by: Vishnu Narayanan <[email protected]>
  • Loading branch information
cortopy and vishnu-narayanan authored Nov 11, 2022
1 parent 2b847ff commit 95f29af
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/chatwoot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ sources:
- http://www.chatwoot.com

# This is the chart version.
version: 1.0.8
version: 1.0.9

# This is the application version.
appVersion: "v2.10.0"
9 changes: 9 additions & 0 deletions charts/chatwoot/templates/migrations-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,13 @@ spec:
name: {{ .Values.existingEnvSecret }}
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: cache
mountPath: /app/tmp
serviceAccountName: {{ include "chatwoot.serviceAccountName" . }}
{{- if .Values.securityContext }}
securityContext: {{ .Values.securityContext | toYaml | nindent 8 }}
{{- end }}
volumes:
- name: cache
emptyDir: {}
10 changes: 10 additions & 0 deletions charts/chatwoot/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,14 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
- name: cache
mountPath: /app/tmp
serviceAccountName: {{ include "chatwoot.serviceAccountName" . }}
{{- if .Values.securityContext }}
securityContext: {{ .Values.securityContext | toYaml | nindent 8 }}
{{- end }}
volumes:
- name: cache
emptyDir: {}

10 changes: 10 additions & 0 deletions charts/chatwoot/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,14 @@ spec:
{{- toYaml . | nindent 12 }}
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: cache
mountPath: /app/tmp
serviceAccountName: {{ include "chatwoot.serviceAccountName" . }}
{{- if .Values.securityContext }}
securityContext: {{ .Values.securityContext | toYaml | nindent 8 }}
{{- end }}
volumes:
- name: cache
emptyDir: {}

0 comments on commit 95f29af

Please sign in to comment.