From cd24746ab74dbcfad9aa7829f46a24a7084fccb7 Mon Sep 17 00:00:00 2001 From: JustusBunsi <61625851+justusbunsi@users.noreply.github.com> Date: Tue, 21 Nov 2023 17:41:19 +0100 Subject: [PATCH] Allow customizing helper pod Signed-off-by: justusbunsi <61625851+justusbunsi@users.noreply.github.com> --- .../chart/local-path-provisioner/templates/configmap.yaml | 7 ++++++- deploy/chart/local-path-provisioner/values.yaml | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/deploy/chart/local-path-provisioner/templates/configmap.yaml b/deploy/chart/local-path-provisioner/templates/configmap.yaml index 2d3b259e..e19ae4fa 100644 --- a/deploy/chart/local-path-provisioner/templates/configmap.yaml +++ b/deploy/chart/local-path-provisioner/templates/configmap.yaml @@ -36,8 +36,13 @@ data: helperPod.yaml: |- apiVersion: v1 kind: Pod + namespace: {{ default .Release.Namespace .Values.helperPod.namespaceOverride }} metadata: - name: helper-pod + name: {{ .Values.helperPod.name }} + {{- with .Values.helperPod.annotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} spec: priorityClassName: system-node-critical tolerations: diff --git a/deploy/chart/local-path-provisioner/values.yaml b/deploy/chart/local-path-provisioner/values.yaml index 930aa3b1..92ce61ef 100644 --- a/deploy/chart/local-path-provisioner/values.yaml +++ b/deploy/chart/local-path-provisioner/values.yaml @@ -158,6 +158,12 @@ configmap: set -eu rm -rf "$VOL_DIR" +helperPod: + # Allows to run the helper pod in another namespace. Uses release namespace by default. + namespaceOverride: "" + name: "helper-pod" + annotations: {} + # Number of provisioner worker threads to call provision/delete simultaneously. # workerThreads: 4 -- GitLab