From d8506449e5737e86c78b0bfc6fd52897baf79bf2 Mon Sep 17 00:00:00 2001 From: Adam <105730183+aquanne@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:37:01 -0600 Subject: [PATCH] SEC-7055: add imagePullPolicy support for initContainers --- charts/common/Chart.yaml | 2 +- charts/common/templates/deployment-canary.yaml | 1 + charts/common/templates/deployment.yaml | 1 + charts/job/Chart.yaml | 2 +- charts/job/templates/cronjob.yaml | 1 + charts/job/templates/job.yaml | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/common/Chart.yaml b/charts/common/Chart.yaml index 44e0126d..d7ca9fb7 100644 --- a/charts/common/Chart.yaml +++ b/charts/common/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.10.9-beta.1 +version: 0.10.9-beta.2 # This is the version number of the application being deployed. This version number should be diff --git a/charts/common/templates/deployment-canary.yaml b/charts/common/templates/deployment-canary.yaml index dc008db9..e867fe20 100644 --- a/charts/common/templates/deployment-canary.yaml +++ b/charts/common/templates/deployment-canary.yaml @@ -83,6 +83,7 @@ spec: {{- if .Values.initContainer.enabled }} - name: {{ .Values.initContainer.name }} image: {{ .Values.initContainer.image }} + imagePullPolicy: {{ .Values.image.pullPolicy }} command: {{ toYaml .Values.initContainer.command | nindent 12 }} env: - name: NODE_ENV diff --git a/charts/common/templates/deployment.yaml b/charts/common/templates/deployment.yaml index 94191ba6..a6c39408 100644 --- a/charts/common/templates/deployment.yaml +++ b/charts/common/templates/deployment.yaml @@ -87,6 +87,7 @@ spec: {{- if .Values.initContainer.enabled }} - name: {{ .Values.initContainer.name }} image: {{ .Values.initContainer.image }} + imagePullPolicy: {{ .Values.image.pullPolicy }} command: {{ toYaml .Values.initContainer.command | nindent 12 }} env: - name: NODE_ENV diff --git a/charts/job/Chart.yaml b/charts/job/Chart.yaml index 53683e62..6d807ce8 100644 --- a/charts/job/Chart.yaml +++ b/charts/job/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.2-beta.0 +version: 0.2.2-beta.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/job/templates/cronjob.yaml b/charts/job/templates/cronjob.yaml index 66b2e8d4..36fd1371 100644 --- a/charts/job/templates/cronjob.yaml +++ b/charts/job/templates/cronjob.yaml @@ -70,6 +70,7 @@ spec: {{- if .Values.initContainer.enabled }} - name: {{ .Values.initContainer.name }} image: {{ .Values.initContainer.image }} + imagePullPolicy: {{ .Values.image.pullPolicy }} command: {{ toYaml .Values.initContainer.command | nindent 14 }} volumeMounts: - name: tmp diff --git a/charts/job/templates/job.yaml b/charts/job/templates/job.yaml index 29801fd3..81b70803 100644 --- a/charts/job/templates/job.yaml +++ b/charts/job/templates/job.yaml @@ -51,6 +51,7 @@ spec: {{- if .Values.initContainer.enabled }} - name: {{ .Values.initContainer.name }} image: {{ .Values.initContainer.image }} + imagePullPolicy: {{ .Values.image.pullPolicy }} command: {{ toYaml .Values.initContainer.command | nindent 10 }} volumeMounts: - name: tmp