Skip to content

Commit

Permalink
CHG: merge helper-image setting into one place for helm charts
Browse files Browse the repository at this point in the history
Signed-off-by: tgfree <tgfree7@gmail.com>
(cherry picked from commit 7a55712)
  • Loading branch information
tgfree7 authored and derekbit committed Oct 25, 2022
1 parent 4768915 commit ac68e0a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
15 changes: 13 additions & 2 deletions deploy/chart/local-path-provisioner/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,16 @@ data:
teardown: |-
{{ .Values.configmap.teardown | nindent 4 }}
helperPod.yaml: |-
{{ .Values.configmap.helperPod | nindent 4 }}
apiVersion: v1
kind: Pod
metadata:
name: helper-pod
spec:
containers:
- name: helper-pod
{{- if .Values.privateRegistry.registryUrl }}
image: {{ .Values.privateRegistry.registryUrl }}/{{ .Values.helperImage.repository }}:{{ .Values.helperImage.tag }}
{{- else }}
image: {{ .Values.helperImage.repository }}:{{ .Values.helperImage.tag }}
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
11 changes: 0 additions & 11 deletions deploy/chart/local-path-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,6 @@ configmap:
#!/bin/sh
set -eu
rm -rf "$VOL_DIR"
# specify the custom helper pod yaml
helperPod: |-
apiVersion: v1
kind: Pod
metadata:
name: helper-pod
spec:
containers:
- name: helper-pod
image: busybox
imagePullPolicy: IfNotPresent
# Number of provisioner worker threads to call provision/delete simultaneously.
# workerThreads: 4
Expand Down

0 comments on commit ac68e0a

Please sign in to comment.