Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: align imagePullSecrets in Deployment and ServiceAccount #202

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

martinohmann
Copy link
Contributor

Why is this pull request needed and what does it do?

Fixes the misalignment between the structure expected for image.pullSecrets in deployment.yaml/deployment-autoscaler.yaml and serviceaccount.yaml/serviceaccount-autoscaler.yaml which made it impossible to use imagePullSecrets because they produced invalid manifests.

I also took the opportunity to align the if statements in the Deployment templates to what is used in the ServiceAccount templates for consistency.

Which issues (if any) are related?

Fixes #154

Checklist:

  • I have bumped the chart version according to versioning.
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.

Changes are automatically published when merged to main. They are not published on branches.

Note on DCO

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

Fixes coredns#154

I also took the opportunity to align the `if` statements in the
`Deployment` templates to what is used in the `ServiceAccount`
templates.

Signed-off-by: martinohmann <[email protected]>
@hagaibarel hagaibarel merged commit e0a04bf into coredns:master Feb 25, 2025
2 checks passed
@hagaibarel
Copy link
Collaborator

Thanks for the fix!

@martinohmann martinohmann deleted the image-pull-secrets branch February 25, 2025 10:20
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.

imagePullSecret structure doesn't match in deployments vs service accounts
2 participants