github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/config/scripts/create_verrazzano_image_list.sh (about) 1 #!/bin/bash 2 # 3 # Copyright (c) 2020, 2021, Oracle and/or its affiliates. 4 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 5 # 6 7 set -e 8 SCRIPT_DIR=$(cd $(dirname "$0"); pwd -P) 9 WORKSPACE_ROOT=${SCRIPT_DIR}/../../../.. 10 IMG_LIST_FILE=$1 11 12 if [ -z "${KUBECONFIG}" ] ; then 13 echo "KUBECONFIG env var must be set!" 14 exit 1 15 fi 16 17 source ${WORKSPACE}/platform-operator/scripts/install/common.sh 18 # get image list from cluster and persist to output file 19 echo "Inspecting cluster pods for Verrazzano release images" 20 kubectl get pods --all-namespaces -o jsonpath="{..image}" |\tr -s '[[:space:]]' '\n' |\sort |\uniq | grep verrazzano | grep / | cut -d/ -f2- >> ${IMG_LIST_FILE} || exit 1 21 22 # add the acme solver (short lived container image) 23 echo "adding acme solver image to list" 24 echo $CERT_MANAGER_SOLVER_IMAGE:$CERT_MANAGER_SOLVER_TAG | grep / | cut -d/ -f2- >> ${IMG_LIST_FILE} || exit 1