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(k8s): ensure image pull secret is always created for K8s Deploy #6795

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

eysi09
Copy link
Collaborator

@eysi09 eysi09 commented Jan 22, 2025

What this PR does / why we need it:

This fixes an issue were in some (edge) cases the image pull secret is created in the target namespace is using the kubernetes Deploy type.

I say edge case because the image pull secret is usually ensured in other code paths, e.g. when initialising in-cluster builders and as AFAICT this only happens if using the cloud builder in the k8s Deploy type.

The operation is idempotent so calling it again here should be fine.

TODO @Myself: I want to refactor this flow a little bit in a follow up commit but wanted to get the fix out the way first.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

This fixes an issue were in some (edge) cases the image pull secret is
created in the target namespace is using the `kubernetes` Deploy type.

I say edge case because the image pull secret is usually ensured in other
code paths, e.g. when initialising in-cluster builders and as AFAICT
this only happens if using the cloud builder in the k8s Deploy type.

The operation is idempotent so calling it again here should be fine.

TODO @Myself: I want to refactor this flow a little bit in a follow up
commit but wanted to get the fix out the way first.
@eysi09 eysi09 assigned eysi09, vvagaytsev and twelvemo and unassigned eysi09 Jan 22, 2025
@vvagaytsev vvagaytsev added this pull request to the merge queue Jan 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 23, 2025
@vvagaytsev vvagaytsev added this pull request to the merge queue Jan 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 23, 2025
@vvagaytsev vvagaytsev added this pull request to the merge queue Jan 23, 2025
Merged via the queue into main with commit 6898536 Jan 23, 2025
40 checks passed
@vvagaytsev vvagaytsev deleted the ensure-image-secrets-for-k8s-deploy branch January 23, 2025 22:23
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.

3 participants