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

Check deployed images against newly-built images #1265

Closed
wants to merge 3 commits into from

Conversation

skitt
Copy link
Member

@skitt skitt commented Jun 12, 2023

See individual commits for details.

This still needs fixes in Helm deployments and an opt-out for upgrade tests.

Fixes: #479.

@submariner-bot
Copy link

🤖 Created branch: z_pr1265/skitt/check-deployed-image

done
done
if [ "$image_mismatch" = true ]; then
kubectl get pods -A -o json
Copy link
Member Author

Choose a reason for hiding this comment

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

This is too verbose and will be simplified before the patch is submitted for final review.

Copy link
Member

Choose a reason for hiding this comment

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

Does this still need tweaking?

Copy link
Member

Choose a reason for hiding this comment

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

To ensure that we're testing with the latest image, as available in
the local repository, we need to override all users of the nettest
image. Currently subctl exposes two components for that:
submariner-nettest and submariner-metrics-proxy. This patch adds
support for multiple components per image; since the project already
preloads the nettest image, this results in the correct image override
arguments being given to subctl.

Signed-off-by: Stephen Kitt <[email protected]>
After deployment, if any images were built, check that they were used
in the deployment.

Signed-off-by: Stephen Kitt <[email protected]>
@dfarrell07 dfarrell07 self-requested a review July 10, 2023 16:54
@dfarrell07
Copy link
Member

Looks like all the Helm jobs are failing

fi
done
done
if [ "$image_mismatch" = true ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be run when opted-in, since you might want to deploy with various images when deploying locally or when we're doing upgrade testing

@tpantelis
Copy link
Contributor

Is this still relevant?

@skitt
Copy link
Member Author

skitt commented Nov 6, 2023

Yes; it needs improved logging on errors, and a way of disabling the test (as Mike says, and for the Helm charts; there’s probably stuff to fix in the Helm chart builds but that can be done separately).

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further
activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Nov 21, 2023
@skitt skitt removed the stale label Nov 21, 2023
Copy link

github-actions bot commented Dec 6, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further
activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 6, 2023
@github-actions github-actions bot closed this Dec 14, 2023
@submariner-bot
Copy link

🤖 Closed branches: [z_pr1265/skitt/check-deployed-image]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check that the images we deploy are those we built
5 participants