Skip to content

Commit

Permalink
Fix kustomize phony for older CAPM3 branches
Browse files Browse the repository at this point in the history
Signed-off-by: Kashif Khan <kashif.khan@est.tech>
  • Loading branch information
kashifest committed Jan 23, 2024
1 parent 274e675 commit 5c22534
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 03_launch_mgmt_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5c22534

Please sign in to comment.