Skip to content

[SEC-7055] Add imagePullPolicy support for initContainers#259

Open
aquanne wants to merge 1 commit intomasterfrom
SEC-7055/initcontainer-imagepullpolicy-support
Open

[SEC-7055] Add imagePullPolicy support for initContainers#259
aquanne wants to merge 1 commit intomasterfrom
SEC-7055/initcontainer-imagepullpolicy-support

Conversation

@aquanne
Copy link
Copy Markdown
Contributor

@aquanne aquanne commented Oct 23, 2025

Ticket
SEC-7055

Ticket and brief summary
Add configurable imagePullPolicy support for initContainers in the common and job charts. InitContainers now inherit the main container's image.pullPolicy setting (defaults to Always), following the existing pattern used by the cloudsqlProxy sidecar container.

How did you test your code?

  • Verified template syntax follows existing cloudsqlProxy pattern
  • Confirmed backward compatibility: initContainers will use Always by default (matching current behavior)
  • Reviewed all initContainer locations across both charts

How will you confirm this change is working once it's deployed?

  • Verify rendered manifests include imagePullPolicy: Always on initContainers
  • Confirm existing deployments continue to function without modification
  • Test that custom image.pullPolicy values are correctly inherited by initContainers

@aquanne aquanne requested a review from a team as a code owner October 23, 2025 22:40
Copilot AI review requested due to automatic review settings October 23, 2025 22:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds configurable imagePullPolicy support for initContainers in the common and job Helm charts. InitContainers now inherit the main container's image.pullPolicy setting, following the existing pattern used by the cloudsqlProxy sidecar container.

Key Changes:

  • Added imagePullPolicy: {{ .Values.image.pullPolicy }} to all initContainer definitions
  • Incremented chart versions for both common and job charts

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
charts/job/templates/job.yaml Added imagePullPolicy to initContainer configuration
charts/job/templates/cronjob.yaml Added imagePullPolicy to initContainer configuration
charts/job/Chart.yaml Bumped chart version from 0.2.2-beta.0 to 0.2.2-beta.1
charts/common/templates/deployment.yaml Added imagePullPolicy to initContainer configuration
charts/common/templates/deployment-canary.yaml Added imagePullPolicy to initContainer configuration
charts/common/Chart.yaml Bumped chart version from 0.10.9-beta.1 to 0.10.9-beta.2

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqube-trydave
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants