Skip to content

Commit

Permalink
chore: kind processor always loads imgs on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
iocanel committed Feb 6, 2023
1 parent afe4a37 commit 8b233bc
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,9 @@ public List<DecoratorBuildItem> createDecorators(ApplicationInfoBuildItem applic
@BuildStep
public void postBuild(ContainerImageInfoBuildItem image, List<ContainerImageBuilderBuildItem> builders,
@SuppressWarnings("unused") BuildProducer<ArtifactResultBuildItem> artifactResults) {
boolean isLoadSupported = builders.stream().anyMatch(b -> b.getBuilder().equals("docker")
|| b.getBuilder().equals("jib")
|| b.getBuilder().equals("buildpack"));
if (isLoadSupported) {
ExecUtil.exec("kind", "load", "docker-image", image.getImage());
}
//We used to only perform the action below when using known builders that play nicely with kind (e.g. docker)
//However, this excluded users that are just using external tools for building including the cli (e.g. quarkus image build docker).
//So, we now always perform this step
ExecUtil.exec("kind", "load", "docker-image", image.getImage());
}
}

0 comments on commit 8b233bc

Please sign in to comment.