Eanble postupgrade and uninstall job security context privileged

Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com>
This commit is contained in:
JenTing Hsiao 2021-03-16 23:06:41 +08:00 committed by David Ko
parent ff72f95d9c
commit eb76703339
2 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,8 @@ spec:
- name: longhorn-post-upgrade - name: longhorn-post-upgrade
image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }}
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
securityContext:
privileged: true
command: command:
- longhorn-manager - longhorn-manager
- post-upgrade - post-upgrade

View File

@ -19,6 +19,8 @@ spec:
- name: longhorn-uninstall - name: longhorn-uninstall
image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }}
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
securityContext:
privileged: true
command: command:
- longhorn-manager - longhorn-manager
- uninstall - uninstall