File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 62
62
securityContext :
63
63
runAsUser : {{ .Values.securityContext.runAsUser }}
64
64
{{- end }}
65
+ {{- if .Values.lifecycle.enabled }}
66
+ lifecycle :
67
+ {{- if .Values.lifecycle.postStart }}
68
+ postStart :
69
+ {{ toYaml .Values.lifecycle.postStart | nindent 14 }}
70
+ {{- end }}
71
+ {{- if .Values.lifecycle.preStop }}
72
+ preStop :
73
+ {{ toYaml .Values.lifecycle.preStop | nindent 14 }}
74
+ {{- end }}
75
+ {{- end }}
65
76
env :
66
77
{{- if .Values.extraVars }}
67
78
{{ toYaml .Values.extraVars | indent 10 }}
Original file line number Diff line number Diff line change @@ -127,6 +127,15 @@ persistence:
127
127
# existingClaim: ""
128
128
# hostPath: /data
129
129
130
+ lifecycle :
131
+ enabled : false
132
+ # postStart:
133
+ # exec:
134
+ # command:
135
+ # - /bin/bash
136
+ # - -c
137
+ # - curl -s -L SOME_SCRIPT | bash
138
+
130
139
# # Enable an Specify container in extraContainers.
131
140
# # This is meant to allow adding code-server dependencies, like docker-dind.
132
141
extraContainers : |
You can’t perform that action at this time.
0 commit comments