mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 07:27:22 +00:00
ci.ocp: Allow to set CAA_IMAGE
we might want to provide different CAA_IMAGE (repo) to reproduce issues. Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
This commit is contained in:
parent
8a7abcebf8
commit
d516fea15f
@ -116,12 +116,18 @@ az network vnet subnet update \
|
|||||||
for NODE_NAME in $(kubectl get nodes -o jsonpath='{.items[*].metadata.name}'); do [[ "${NODE_NAME}" =~ 'worker' ]] && kubectl label node "${NODE_NAME}" node.kubernetes.io/worker=; done
|
for NODE_NAME in $(kubectl get nodes -o jsonpath='{.items[*].metadata.name}'); do [[ "${NODE_NAME}" =~ 'worker' ]] && kubectl label node "${NODE_NAME}" node.kubernetes.io/worker=; done
|
||||||
|
|
||||||
# CAA artifacts
|
# CAA artifacts
|
||||||
CAA_IMAGE="quay.io/confidential-containers/cloud-api-adaptor"
|
|
||||||
if [[ -z "${CAA_TAG}" ]]; then
|
if [[ -z "${CAA_TAG}" ]]; then
|
||||||
|
if [[ -n "${CAA_IMAGE}" ]]; then
|
||||||
|
echo "CAA_IMAGE (${CAA_IMAGE}) is set but CAA_TAG isn't, which is not supported. Please specify both or none"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
TAGS="$(curl https://quay.io/api/v1/repository/confidential-containers/cloud-api-adaptor/tag/?onlyActiveTags=true)"
|
TAGS="$(curl https://quay.io/api/v1/repository/confidential-containers/cloud-api-adaptor/tag/?onlyActiveTags=true)"
|
||||||
DIGEST=$(echo "${TAGS}" | jq -r '.tags[] | select(.name | contains("latest-amd64")) | .manifest_digest')
|
DIGEST=$(echo "${TAGS}" | jq -r '.tags[] | select(.name | contains("latest-amd64")) | .manifest_digest')
|
||||||
CAA_TAG="$(echo "${TAGS}" | jq -r '.tags[] | select(.manifest_digest | contains("'"${DIGEST}"'")) | .name' | grep -v "latest")"
|
CAA_TAG="$(echo "${TAGS}" | jq -r '.tags[] | select(.manifest_digest | contains("'"${DIGEST}"'")) | .name' | grep -v "latest")"
|
||||||
fi
|
fi
|
||||||
|
if [[ -z "${CAA_IMAGE}" ]]; then
|
||||||
|
CAA_IMAGE="quay.io/confidential-containers/cloud-api-adaptor"
|
||||||
|
fi
|
||||||
|
|
||||||
# Get latest PP image
|
# Get latest PP image
|
||||||
if [[ -z "${PP_IMAGE_ID}" ]]; then
|
if [[ -z "${PP_IMAGE_ID}" ]]; then
|
||||||
@ -137,6 +143,7 @@ echo "PP_REGION=\"${PP_REGION}\""
|
|||||||
echo "AZURE_RESOURCE_GROUP=\"${AZURE_RESOURCE_GROUP}\""
|
echo "AZURE_RESOURCE_GROUP=\"${AZURE_RESOURCE_GROUP}\""
|
||||||
echo "PP_RESOURCE_GROUP=\"${PP_RESOURCE_GROUP}\""
|
echo "PP_RESOURCE_GROUP=\"${PP_RESOURCE_GROUP}\""
|
||||||
echo "PP_SUBNET_ID=\"${PP_SUBNET_ID}\""
|
echo "PP_SUBNET_ID=\"${PP_SUBNET_ID}\""
|
||||||
|
echo "CAA_IMAGE=\"${CAA_IMAGE}\""
|
||||||
echo "CAA_TAG=\"${CAA_TAG}\""
|
echo "CAA_TAG=\"${CAA_TAG}\""
|
||||||
echo "PP_IMAGE_ID=\"${PP_IMAGE_ID}\""
|
echo "PP_IMAGE_ID=\"${PP_IMAGE_ID}\""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user