File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ set -euo pipefail
66
77
88UPSTREAM_NODELINK_DEPLOYMENT=" machine-api-controllers"
9- UPSTREAM_MACHINE_API_OPERATOR_DEPLOYMENT=" machine-api-operator"
9+ IMAGES_CONFIG_MAP=" machine-api-operator-images"
10+ OPERATOR_IMAGE_KEY=" machineAPIOperator"
1011
1112if kubectl get deployment " ${UPSTREAM_NODELINK_DEPLOYMENT} " & > /dev/null; then
1213 echo " Real upstream nodelink deployment already exists, skipping"
1516
1617tmpdir=$( mktemp -d)
1718
18- image=$( kubectl get deployment " ${UPSTREAM_MACHINE_API_OPERATOR_DEPLOYMENT } " -oyaml | yq ' .spec.template.spec.containers | filter(.name == "machine-api-operator") | .[0].image ' )
19+ image=$( kubectl get configmap " ${IMAGES_CONFIG_MAP } " -oyaml | yq ' .data["images.json"] | from_yaml | .[" ' " ${OPERATOR_IMAGE_KEY} " ' "] ' )
1920
2021imageParts=(${image//@/ } )
2122
You can’t perform that action at this time.
0 commit comments