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 issues with imagePullSecret handling #898

Merged
merged 3 commits into from
Aug 2, 2022

Conversation

amisevsk
Copy link
Collaborator

What does this PR do?

Fixes a couple of issues with how DWO handles imagePullSecrets:

  • We're listing imagePullSecrets across the cluster rather than only in the current namespace
  • ImagePullSecrets can be read in random order, resulting in unnecessary updates to DevWorkspace Deployments

What issues does this PR fix or reference?

Closes #896
Closes #897

Is it tested? How?

Test that issues #896 and #897 no longer reproduce.

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v8-devworkspace-operator-e2e, v8-che-happy-path to trigger)
    • v8-devworkspace-operator-e2e: DevWorkspace e2e test
    • v8-che-happy-path: Happy path for verification integration with Che

amisevsk added 3 commits July 28, 2022 14:49
Restrict secret list when checking for imagePullSecrets to only the
current workspace's namespace.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
ImagePullSecrets are not read from the cluster in a consistent order.
This can result in unnecessarily updating the workspace deployment to
change the order of imagePullSecrets, triggering rollouts and restarting
pods.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Copy link
Collaborator

@dkwon17 dkwon17 left a comment

Choose a reason for hiding this comment

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

Code looks good to me and I'm not able to reproduce #896 and #897 anymore

Copy link
Collaborator

@AObuchow AObuchow left a comment

Choose a reason for hiding this comment

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

Code looks good to me & can no longer reproduce #896 and #897 as intended.

@openshift-ci
Copy link

openshift-ci bot commented Jul 29, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amisevsk, AObuchow, dkwon17

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@amisevsk amisevsk merged commit 4dfbb08 into devfile:main Aug 2, 2022
@amisevsk amisevsk deleted the imagepullsecrets-fixes branch August 2, 2022 19:15
@amisevsk amisevsk mentioned this pull request Aug 2, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants