-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Cleanup in it utilities 6 #1770
Cleanup in it utilities 6 #1770
Conversation
String version = StreamUtils.copyToString(in, StandardCharsets.UTF_8); | ||
if (StringUtils.hasText(version)) { | ||
version = version.trim(); | ||
if (POM_VERSION == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick improvement, don't read pom version all the time by loading that file, but do it only once, per vm
@@ -149,6 +149,11 @@ public static void loadImage(String image, String tag, String tarName, K3sContai | |||
* either get the tar from '/tmp/docker/images', or pull the image. | |||
*/ | |||
public static void load(K3sContainer container, String tarName, String imageNameForDownload, String imageVersion) { | |||
|
|||
if (imageAlreadyInK3s(container, tarName)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the image is already inside the container, skip. We already had this, but for busybox only. This generalizes it for all images (also it does it according to your comment in a previous PR, thx for that btw!)
@ryanjbaxter last one for today. thank you |
No description provided.