Skip to content

Commit

Permalink
[gotosocial] Add support for arbitary initContainers #7
Browse files Browse the repository at this point in the history
  • Loading branch information
0hlov3 committed Mar 31, 2024
1 parent 5a0c002 commit 8ced075
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/gotosocial/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ home: https://github.com/superseriousbusiness/gotosocial

type: application
# Chart Version
version: "0.4.18"
version: "0.4.19"
# gotosocial version
appVersion: "0.13.3"

Expand Down
4 changes: 4 additions & 0 deletions charts/gotosocial/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
serviceAccountName: {{ include "gotosocial.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.initContainers }}
initContainers:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
6 changes: 6 additions & 0 deletions charts/gotosocial/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ gotosocial:
advancedSenderMultiplier: 2
advancedCspExtraUris: []
advancedHeaderFilterMode: ""

initContainers: []
# - name: init-myservice
# image: busybox:1.28
# command: ['sh', '-c', "until nslookup myservice.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for myservice; sleep 2; done"]

postgresql:
enabled: false
image:
Expand Down

0 comments on commit 8ced075

Please sign in to comment.