From ed65d5fa22f3e23f0510f46746bdac69ef5e02f4 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Tue, 4 May 2021 10:49:25 +0200 Subject: [PATCH] backup of install-config.yaml --- clusterctl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clusterctl b/clusterctl index 84d18f7..2cc6746 100755 --- a/clusterctl +++ b/clusterctl @@ -46,6 +46,11 @@ function apply () { exit 1 fi + # Make a backup since the openshift-install command will consume it + if [ -f "$cluster_name/install-config.yaml" ]; then + cp "$cluster_name/install-config.yaml" "$cluster_name/install-config.yaml.bak" + fi + # Create installation files openshift-install create manifests --dir="$cluster_name" openshift-install create ignition-configs --dir="$cluster_name"