Move kubeadm folder creation from full_install_osm.sh to install_kubeadm_cluster.sh 57/14157/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 22 Jan 2024 12:15:31 +0000 (13:15 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 22 Jan 2024 12:15:31 +0000 (13:15 +0100)
Change-Id: Iaa02b89c029eb933e4ca5f5052a1829527b71a4a
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/full_install_osm.sh
installers/install_kubeadm_cluster.sh

index c38a364..68474a0 100755 (executable)
@@ -492,10 +492,6 @@ function install_osm() {
 
     track docker_ce docker_ce_ok
 
-    echo "Creating folders for installation"
-    [ ! -d "$OSM_WORK_DIR" ] && sudo mkdir -p $OSM_WORK_DIR
-    sudo cp -b $OSM_DEVOPS/installers/kubeadm-config.yaml $OSM_WORK_DIR/kubeadm-config.yaml
-
     $OSM_DEVOPS/installers/install_kubeadm_cluster.sh -i ${OSM_DEFAULT_IP} -d ${OSM_WORK_DIR} -D ${OSM_DEVOPS} ${DEBUG_INSTALL} || \
     FATAL_TRACK k8scluster "install_kubeadm_cluster.sh failed"
     track k8scluster k8scluster_ok
index 6855d9f..0d5f12c 100755 (executable)
@@ -351,6 +351,10 @@ echo "OSM_CLUSTER_WORK_DIR=$OSM_CLUSTER_WORK_DIR"
 echo "INSTALL_K8S_MONITOR=$INSTALL_K8S_MONITOR"
 echo "HOME=$HOME"
 
+echo "Creating folders for installation"
+[ ! -d "$OSM_CLUSTER_WORK_DIR" ] && sudo mkdir -p $OSM_CLUSTER_WORK_DIR
+echo "Copying kubeadm-config from $OSM_DEVOPS/installers/kubeadm-config.yaml to $OSM_CLUSTER_WORK_DIR/kubeadm-config.yaml"
+sudo cp -b $OSM_DEVOPS/installers/kubeadm-config.yaml $OSM_CLUSTER_WORK_DIR/kubeadm-config.yaml
 
 install_kube
 check_and_track_kube_install