From 094b61b66c981e85e0a8c2033f3c3eeba7edd6e7 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 8 May 2023 15:07:43 +0800 Subject: [PATCH] fix: remove `privileged` from lifecycle jobs Remove `privileged` requirement from lifecycle jobs `post-upgrade` and `uninstall`. Ref: 5862 Signed-off-by: James Lu --- chart/templates/postupgrade-job.yaml | 2 -- chart/templates/uninstall-job.yaml | 2 -- 2 files changed, 4 deletions(-) diff --git a/chart/templates/postupgrade-job.yaml b/chart/templates/postupgrade-job.yaml index 43c2ccc..925146e 100644 --- a/chart/templates/postupgrade-job.yaml +++ b/chart/templates/postupgrade-job.yaml @@ -19,8 +19,6 @@ spec: - name: longhorn-post-upgrade image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - securityContext: - privileged: true command: - longhorn-manager - post-upgrade diff --git a/chart/templates/uninstall-job.yaml b/chart/templates/uninstall-job.yaml index fd14954..2ab43a5 100644 --- a/chart/templates/uninstall-job.yaml +++ b/chart/templates/uninstall-job.yaml @@ -19,8 +19,6 @@ spec: - name: longhorn-uninstall image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} - securityContext: - privileged: true command: - longhorn-manager - uninstall