Enable Integration Tests to Use Podman-Built Images #98
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #96.
Summary
This PR ensures that the value of
OCI_BIN
now determines whether images are loaded from Podman or Docker during integration tests, addressing the issue detailed in Integration Tests Not Using Podman-Built Images. The key updates include:Addition of the
loadimagearchive
Addon: A new addon,loadimagearchive
, has been created by adapting the existing github.com/kong/kubernetes-testing-framework/pkg/clusters/addons/loadimage addon. This new addon supports both Docker and Podman by saving images as tarballs and loading them into kind clusters using thekind load image-archive
command. The addon determines which container engine to use based on the value of theOCI_BIN
environment variable, ensuring that the correct images are loaded into the cluster.Makefile Updates: The
load-images-kind
target now respects the value ofOCI_BIN
and has been reworked to load images viakind load image-archive
, similar to the new addon. This change ensures that images corresponding to the specifiedOCI_BIN
(either Docker or Podman) are correctly loaded into the kind cluster.Integration Test Suite: The test suite has been updated to use the new
loadimagearchive
addon.