X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=env%2Flib%2Fcommon.sh;h=ba23921cb094b2906dc94a91441b9a464c3dbba7;hb=275eecaa965404bb60bc47b469388276076acf8f;hp=2cbdc0b5e48c9ef02bf0682f475c9dc1f266234f;hpb=8434fe9ddb70d9404ab6fa5b5d7d9d926845afc1;p=icn.git diff --git a/env/lib/common.sh b/env/lib/common.sh index 2cbdc0b..ba23921 100755 --- a/env/lib/common.sh +++ b/env/lib/common.sh @@ -27,11 +27,11 @@ KUDPATH="/opt/src/github.com/onap/multicloud-k8s" KUD_VERSION="8157bf63753839ce4e9006978816fad3f63ca2de" #EMCO repository URL -EMCOREPO="${EMCOREPO:-https://github.com/open-ness/EMCO.git}" +EMCOREPO="${EMCOREPO:-https://gitlab.com/project-emco/core/emco-base.git}" #Path to clone the EMCO repo -EMCOPATH="/opt/src/github.com/open-ness/EMCO" +EMCOPATH="/opt/src/emco-base" #EMCO version to use -EMCO_VERSION="openness-21.03.06" +EMCO_VERSION="v21.12" #Discard existing repo directory FORCE_REPO_UPDATE="${FORCE_REPO_UPDATE:-false}" @@ -274,40 +274,6 @@ function clone_emco_repository { clone_repository ${EMCOPATH} ${EMCOREPO} ${EMCO_VERSION} } -function install_kustomize { - curl -sL "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz" -o kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz - tar xzf kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz --no-same-owner - sudo install -o root -g root -m 0755 kustomize /usr/local/bin/kustomize - rm kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz kustomize - kustomize version -} - -function install_clusterctl { - curl -L https://github.com/kubernetes-sigs/cluster-api/releases/download/${CAPI_VERSION}/clusterctl-linux-amd64 -o clusterctl - sudo install -o root -g root -m 0755 clusterctl /usr/local/bin/clusterctl - rm clusterctl - clusterctl version -} - -function install_flux_cli { - export FLUX_VERSION - curl -s https://fluxcd.io/install.sh | sudo -E bash - flux --version -} - -function install_emcoctl { - clone_emco_repository - make -C ${EMCOPATH}/src/tools/emcoctl - sudo install -o root -g root -m 0755 ${EMCOPATH}/bin/emcoctl/emcoctl /usr/local/bin/emcoctl -} - -function install_sops { - curl -L https://github.com/mozilla/sops/releases/download/${SOPS_VERSION}/sops-${SOPS_VERSION}.linux -o sops - sudo install -o root -g root -m 0755 sops /usr/local/bin/sops - rm sops - sops --version -} - function fetch_image { if [[ "${BM_IMAGE_URL}" && "${BM_IMAGE}" ]]; then mkdir -p "${IRONIC_DATA_DIR}/html/images"