mirror of
https://github.com/coder/code-server.git
synced 2024-11-25 16:35:27 +08:00
Fix extraInitContainers conditional (#7085)
Some checks failed
Build / Format with Prettier (push) Has been cancelled
Build / Doctoc markdown files (push) Has been cancelled
Build / Lint Helm chart (push) Has been cancelled
Build / Lint TypeScript files (push) Has been cancelled
Build / Lint GitHub Actions (push) Has been cancelled
Build / Run unit tests (push) Has been cancelled
Build / Build code-server (push) Has been cancelled
Build / Run e2e tests (push) Has been cancelled
Build / Run e2e tests behind proxy (push) Has been cancelled
Some checks failed
Build / Format with Prettier (push) Has been cancelled
Build / Doctoc markdown files (push) Has been cancelled
Build / Lint Helm chart (push) Has been cancelled
Build / Lint TypeScript files (push) Has been cancelled
Build / Lint GitHub Actions (push) Has been cancelled
Build / Run unit tests (push) Has been cancelled
Build / Build code-server (push) Has been cancelled
Build / Run e2e tests (push) Has been cancelled
Build / Run e2e tests behind proxy (push) Has been cancelled
This commit is contained in:
parent
b0c935a6e0
commit
4af06de4c3
@ -35,8 +35,9 @@ spec:
|
||||
securityContext:
|
||||
fsGroup: {{ .Values.securityContext.fsGroup }}
|
||||
{{- end }}
|
||||
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
|
||||
{{- if or (and .Values.volumePermissions.enabled .Values.persistence.enabled) .Values.extraInitContainers }}
|
||||
initContainers:
|
||||
{{- if and .Values.volumePermissions.enabled .Values.persistence.enabled }}
|
||||
- name: init-chmod-data
|
||||
image: busybox:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
@ -50,6 +51,7 @@ spec:
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /home/coder
|
||||
{{- end }}
|
||||
{{- if .Values.extraInitContainers }}
|
||||
{{ tpl .Values.extraInitContainers . | indent 6}}
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user