Pin ironic container images 10/4610/3
authorTodd Malsbary <todd.malsbary@intel.com>
Fri, 7 Jan 2022 23:44:16 +0000 (15:44 -0800)
committerTodd Malsbary <todd.malsbary@intel.com>
Sat, 8 Jan 2022 00:21:29 +0000 (16:21 -0800)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I2ef15c49fca3722af54c9d5628f4d48d857190a0

deploy/ironic/icn/kustomization.yaml
deploy/ironic/ironic.sh
env/lib/common.sh

index bf4b024..b896f68 100644 (file)
@@ -21,3 +21,9 @@ secretGenerator:
 
 patchesStrategicMerge:
 - data-volume-patch.yaml
+
+images:
+- name: quay.io/metal3-io/ironic
+  newTag: capm3-v0.5.1
+- name: quay.io/metal3-io/ironic-ipa-downloader
+  digest: sha256:d2d871675b629bf66514ccda2e2616c50670f7fff9d95b983a216f3a7fdaa1aa
index 8f46c8c..f8bc2f8 100755 (executable)
@@ -26,6 +26,7 @@ function build_source {
         mkdir -p $(dirname ${dst})
         envsubst <${src} >${dst}
     done
+    sed -i -e '/name: quay.io\/metal3-io\/ironic/{n;s/newTag:.*/newTag: '"${BMO_VERSION}"'/;}' ${SCRIPTDIR}/icn/kustomization.yaml
 }
 
 function deploy {
index 89eaded..cf73abe 100755 (executable)
@@ -15,6 +15,8 @@ BMOREPO="${BMOREPO:-https://github.com/metal3-io/baremetal-operator.git}"
 #Path to clone the baremetal operator repo
 BMOPATH="/opt/src/github.com/metal3-io/baremetal-operator"
 #Bare Metal Operator version to use
+#  If changing this, the value in deploy/ironic/icn/kustomization.yaml
+#  must also be changed
 BMO_VERSION="capm3-v0.5.1"
 
 #KuD repository URL