Skip to content

Conversation

@wind57
Copy link
Contributor

@wind57 wind57 commented Oct 15, 2024

No description provided.

@wind57 wind57 changed the title test drop loading the image when its already present Oct 15, 2024

public static void loadWiremock(K3sContainer container) {
Commons.load(container, WIREMOCK_TAR, WIREMOCK, wiremockVersion());
if (!imageAlreadyInK3s(container, WIREMOCK_TAR)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we did this check in a previous PR for busybox, let's do it for every other image

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just move the check to Commons.load instead?

@wind57 wind57 changed the title drop loading the image when its already present drop loading image when its already present Oct 15, 2024
.get(0)
.setImage(imageFromDeployment + ":" + pomVersion());
}
else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't recall the history of why we needed this, but we do not anymore. At this point in time the images are already un-tared/downloaded and loaded in k3s, as such we can drop this code

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this was needed for Jenkins because on our end we hit threshold limits from Dockerhub inside of K3S. If we pull the images and load them in in the test iself we use our Dockerhub credentials and we don't run into the threshold limits from Dockerhub

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I get it, will close this PR cause its a lot easier to make a new one then re-work this one. thx!

.get(0)
.setImage(imageFromDeployment + ":" + pomVersion());
}
else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

same comment as above

Copy link
Contributor

Choose a reason for hiding this comment

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

same comment as above ;)

@wind57 wind57 marked this pull request as ready for review October 15, 2024 19:51
@wind57
Copy link
Contributor Author

wind57 commented Oct 15, 2024

@ryanjbaxter ongoing changes to refactor integration tests. I'm still far from completing it, but its in progress

@ryanjbaxter
Copy link
Contributor

Got it, when its ready ping me and I will give it a deeper look

@wind57
Copy link
Contributor Author

wind57 commented Oct 15, 2024

I mean, this PR is part of ongoing changes... should have been more explicit, sorry. This one is ready, but more will come, that was my point

@wind57 wind57 closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants