File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ set -euo pipefail
6
6
7
7
8
8
UPSTREAM_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"
10
11
11
12
if kubectl get deployment " ${UPSTREAM_NODELINK_DEPLOYMENT} " & > /dev/null; then
12
13
echo " Real upstream nodelink deployment already exists, skipping"
15
16
16
17
tmpdir=$( mktemp -d)
17
18
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} " ' "] ' )
19
20
20
21
imageParts=(${image//@/ } )
21
22
You can’t perform that action at this time.
0 commit comments