mirror of https://github.com/coder/code-server.git
feat: add lifecycle hook to helm chart (#5397)
This commit is contained in:
parent
5c18e3556b
commit
a51c94190f
|
@ -62,6 +62,17 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.lifecycle.enabled }}
|
||||||
|
lifecycle:
|
||||||
|
{{- if .Values.lifecycle.postStart }}
|
||||||
|
postStart:
|
||||||
|
{{ toYaml .Values.lifecycle.postStart | nindent 14 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.lifecycle.preStop }}
|
||||||
|
preStop:
|
||||||
|
{{ toYaml .Values.lifecycle.preStop | nindent 14 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
{{- if .Values.extraVars }}
|
{{- if .Values.extraVars }}
|
||||||
{{ toYaml .Values.extraVars | indent 10 }}
|
{{ toYaml .Values.extraVars | indent 10 }}
|
||||||
|
|
|
@ -127,6 +127,15 @@ persistence:
|
||||||
# existingClaim: ""
|
# existingClaim: ""
|
||||||
# hostPath: /data
|
# hostPath: /data
|
||||||
|
|
||||||
|
lifecycle:
|
||||||
|
enabled: false
|
||||||
|
# postStart:
|
||||||
|
# exec:
|
||||||
|
# command:
|
||||||
|
# - /bin/bash
|
||||||
|
# - -c
|
||||||
|
# - curl -s -L SOME_SCRIPT | bash
|
||||||
|
|
||||||
## Enable an Specify container in extraContainers.
|
## Enable an Specify container in extraContainers.
|
||||||
## This is meant to allow adding code-server dependencies, like docker-dind.
|
## This is meant to allow adding code-server dependencies, like docker-dind.
|
||||||
extraContainers: |
|
extraContainers: |
|
||||||
|
|
Loading…
Reference in New Issue