Merge pull request #9537 from wainersm/kata-deploy-crio

kata-deploy: configuring CRI-O for guest-pull image pulling
This commit is contained in:
Wainer Moschetta
2024-06-12 17:27:00 -03:00
committed by GitHub
3 changed files with 35 additions and 0 deletions

View File

@@ -215,6 +215,13 @@ function deploy_kata() {
"${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml"
fi
# Set the PULL_TYPE_MAPPING
if [ "${PULL_TYPE}" != "default" ]; then
yq -i \
".spec.template.spec.containers[0].env[10].value = \"${KATA_HYPERVISOR}:${PULL_TYPE}\"" \
"${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml"
fi
echo "::group::Final kata-deploy.yaml that is used in the test"
cat "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml"
grep "${DOCKER_REGISTRY}/${DOCKER_REPO}:${DOCKER_TAG}" "${tools_dir}/packaging/kata-deploy/kata-deploy/base/kata-deploy.yaml" || die "Failed to setup the tests image"