Skip to content

fix: ensure pull secret is added to pooler ServiceAccount#9427

Merged
leonardoce merged 1 commit intomainfrom
fix/pooler-servicaccount-pull-secret
Dec 15, 2025
Merged

fix: ensure pull secret is added to pooler ServiceAccount#9427
leonardoce merged 1 commit intomainfrom
fix/pooler-servicaccount-pull-secret

Conversation

@mnencia
Copy link
Member

@mnencia mnencia commented Dec 13, 2025

When creating a new pooler ServiceAccount, the imagePullSecret was not being
added because the code incorrectly passed the nil resources.ServiceAccount
instead of the newly created serviceAccount variable to the
ensureServiceAccountHaveImagePullSecret function.

This caused pooler deployments to fail pulling images from private registries,
resulting in stuck rolling updates during operator upgrades.

Fixes #9426

@mnencia mnencia requested a review from a team as a code owner December 13, 2025 21:44
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Dec 13, 2025
@cnpg-bot cnpg-bot added backport-requested ◀️ This pull request should be backported to all supported releases release-1.25 release-1.27 release-1.28 labels Dec 13, 2025
@github-actions
Copy link
Contributor

❗ By default, the pull request is configured to backport to all release branches.

  • To stop backporting this pr, remove the label: backport-requested ◀️ or add the label 'do not backport'
  • To stop backporting this pr to a certain release branch, remove the specific branch label: release-x.y

@dosubot dosubot bot added bug 🐛 Something isn't working ok to merge 👌 This PR can be merged labels Dec 13, 2025
@mnencia
Copy link
Member Author

mnencia commented Dec 14, 2025

/test

@github-actions
Copy link
Contributor

@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/20207139400

@mnencia mnencia removed the ok to merge 👌 This PR can be merged label Dec 15, 2025
@mnencia
Copy link
Member Author

mnencia commented Dec 15, 2025

/test

@github-actions
Copy link
Contributor

@mnencia, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/20222763469

@cnpg-bot cnpg-bot added the ok to merge 👌 This PR can be merged label Dec 15, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 15, 2025
When creating a new pooler ServiceAccount, the imagePullSecret was not being
added because the code incorrectly passed the nil resources.ServiceAccount
instead of the newly created serviceAccount variable to the
ensureServiceAccountHaveImagePullSecret function.

This caused pooler deployments to fail pulling images from private registries,
resulting in stuck rolling updates during operator upgrades.

Fixes #9426

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
@leonardoce leonardoce force-pushed the fix/pooler-servicaccount-pull-secret branch from 3ca94d7 to ecad176 Compare December 15, 2025 15:34
@leonardoce leonardoce merged commit 2abbb31 into main Dec 15, 2025
26 of 29 checks passed
@leonardoce leonardoce deleted the fix/pooler-servicaccount-pull-secret branch December 15, 2025 15:44
cnpg-bot pushed a commit that referenced this pull request Dec 15, 2025
When creating a new pooler ServiceAccount, the imagePullSecret was not
being added because the code incorrectly passed the nil
resources.ServiceAccount
instead of the newly created serviceAccount variable to the
ensureServiceAccountHaveImagePullSecret function.

This caused pooler deployments to fail pulling images from private
registries, resulting in stuck rolling updates during operator upgrades.

Fixes #9426

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 2abbb31)
cnpg-bot pushed a commit that referenced this pull request Dec 15, 2025
When creating a new pooler ServiceAccount, the imagePullSecret was not
being added because the code incorrectly passed the nil
resources.ServiceAccount
instead of the newly created serviceAccount variable to the
ensureServiceAccountHaveImagePullSecret function.

This caused pooler deployments to fail pulling images from private
registries, resulting in stuck rolling updates during operator upgrades.

Fixes #9426

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 2abbb31)
cnpg-bot pushed a commit that referenced this pull request Dec 15, 2025
When creating a new pooler ServiceAccount, the imagePullSecret was not
being added because the code incorrectly passed the nil
resources.ServiceAccount
instead of the newly created serviceAccount variable to the
ensureServiceAccountHaveImagePullSecret function.

This caused pooler deployments to fail pulling images from private
registries, resulting in stuck rolling updates during operator upgrades.

Fixes #9426

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 2abbb31)
mnencia added a commit that referenced this pull request Jan 20, 2026
When creating a new pooler ServiceAccount, the imagePullSecret was not
being added because the code incorrectly passed the nil
resources.ServiceAccount
instead of the newly created serviceAccount variable to the
ensureServiceAccountHaveImagePullSecret function.

This caused pooler deployments to fail pulling images from private
registries, resulting in stuck rolling updates during operator upgrades.

Fixes #9426

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
(cherry picked from commit 2abbb31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-requested ◀️ This pull request should be backported to all supported releases bug 🐛 Something isn't working lgtm This PR has been approved by a maintainer ok to merge 👌 This PR can be merged release-1.25 release-1.27 release-1.28 size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pooler ServiceAccount missing imagePullSecret when created

4 participants