summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
164e86c)
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I35e6891a5ca4a966f9806f863e668cd7bd24c811
deploy/baremetal-operator/logs/
deploy/cert-manager/logs/
deploy/metal3/scripts/machines-values.yaml
deploy/baremetal-operator/logs/
deploy/cert-manager/logs/
deploy/metal3/scripts/machines-values.yaml
+deploy/cluster-api/logs/
jump_server: package_prerequisite \
kud_bm_deploy_mini \
bmh_install \
jump_server: package_prerequisite \
kud_bm_deploy_mini \
bmh_install \
bpa_op_install \
bpa_rest_api_install
bpa_op_install \
bpa_rest_api_install
sdwan_verifier:
pushd $(SDWAN_VERIFIER_PATH) && bash sdwan_verifier.sh && popd
sdwan_verifier:
pushd $(SDWAN_VERIFIER_PATH) && bash sdwan_verifier.sh && popd
+capi_install:
+ ./deploy/cluster-api/cluster-api.sh deploy
+
bpa_op_install:
pushd $(BPA_OPERATOR) && make docker && make deploy && popd
bpa_op_install:
pushd $(BPA_OPERATOR) && make docker && make deploy && popd
--- /dev/null
+#!/usr/bin/env bash
+set -eux -o pipefail
+
+SCRIPTDIR="$(readlink -f $(dirname ${BASH_SOURCE[0]}))"
+LIBDIR="$(dirname $(dirname ${SCRIPTDIR}))/env/lib"
+
+source $LIBDIR/logging.sh
+source $LIBDIR/common.sh
+
+function deploy {
+ export EXP_CLUSTER_RESOURCE_SET=true
+ clusterctl init --infrastructure=metal3
+}
+
+function clean {
+ clusterctl delete --all
+}
+
+case $1 in
+ "clean") clean ;;
+ "deploy") deploy ;;
+ *) cat <<EOF
+Usage: $(basename $0) COMMAND
+
+Commands:
+ clean - Remove Cluster API
+ deploy - Deploy Cluster API
+EOF
+ ;;
+esac
source $LIBDIR/env/lib/common.sh
source $LIBDIR/env/lib/common.sh
-export KUBESPRAY_VERSION=2.14.1
+export KUBESPRAY_VERSION=2.16.0
function get_kud_repo {
if [ -d $DOWNLOAD_PATH/multicloud-k8s ]; then
function get_kud_repo {
if [ -d $DOWNLOAD_PATH/multicloud-k8s ]; then
# The kustomize version to use
KUSTOMIZE_VERSION="v4.3.0"
# The kustomize version to use
KUSTOMIZE_VERSION="v4.3.0"
+#Cluster API version to use
+CAPI_VERSION="v0.4.3"
+
#refered from onap
function call_api {
#Runs curl with passed flags and provides
#refered from onap
function call_api {
#Runs curl with passed flags and provides
+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 fetch_image {
if [[ "${BM_IMAGE_URL}" && "${BM_IMAGE}" ]]; then
mkdir -p "${IRONIC_DATA_DIR}/html/images"
function fetch_image {
if [[ "${BM_IMAGE_URL}" && "${BM_IMAGE}" ]]; then
mkdir -p "${IRONIC_DATA_DIR}/html/images"
install_essential_packages
install_ironic_packages
install_kustomize
install_essential_packages
install_ironic_packages
install_kustomize