From 5c225348ed58e1e24acb61cc388e0f1defb1cecf Mon Sep 17 00:00:00 2001 From: Kashif Khan Date: Tue, 23 Jan 2024 09:37:15 +0200 Subject: [PATCH] Fix kustomize phony for older CAPM3 branches Signed-off-by: Kashif Khan --- 03_launch_mgmt_cluster.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/03_launch_mgmt_cluster.sh b/03_launch_mgmt_cluster.sh index 477c537e1..420d42a49 100755 --- a/03_launch_mgmt_cluster.sh +++ b/03_launch_mgmt_cluster.sh @@ -261,7 +261,11 @@ function update_capm3_imports(){ pushd "${CAPM3PATH}" # Modify the kustomization imports to use local BMO repo instead of Github Main - make kustomize + if [[ "${CAPM3BRANCH}" == "release-1.5" ]] || [[ "${CAPM3BRANCH}" == "release-1.4" ]]; then + make hack/tools/bin/kustomize + else + make kustomize + fi ./hack/tools/bin/kustomize build "${IPAMPATH}/config/default" > config/ipam/metal3-ipam-components.yaml sed -i -e "s#https://github.com/metal3-io/ip-address-manager/releases/download/v.*/ipam-components.yaml#metal3-ipam-components.yaml#" "config/ipam/kustomization.yaml"