Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sudo microk8s status --wait-ready
echo "Exporting the kubeconfig file..."
mkdir -p ~/.kube/
echo "Backing up existing kubeconfig if it exists..."
if [ -f "$HOME/.kube/config" ]; then
if [ -f "$HOME/.kube/config" ]; then
mv -v "$HOME/.kube/config" "$HOME/.kube/config.bak"
fi

Expand All @@ -62,13 +62,13 @@ sudo microk8s enable dns

echo "Initialising cluster-api OpenStack provider..."
echo "If this fails you may need a GITHUB_TOKEN, see https://stfc.atlassian.net/wiki/spaces/CLOUDKB/pages/211878034/Cluster+API+Setup for details"
clusterctl init --infrastructure=openstack:"${CLUSTER_API_PROVIDER_OPENSTACK}"
clusterctl init --infrastructure=openstack:"${CAPO_PROVIDER_VERSION}"

echo "Importing required helm repos and packages"
helm repo add capi https://azimuth-cloud.github.io/capi-helm-charts
helm repo add capi-addons https://azimuth-cloud.github.io/cluster-api-addon-provider
helm repo update
helm upgrade cluster-api-addon-provider capi-addons/cluster-api-addon-provider --create-namespace --install --wait -n clusters --version "${ADDON_PROVIDER}"
helm upgrade cluster-api-addon-provider capi-addons/cluster-api-addon-provider --create-namespace --install --wait -n clusters --version "${ADDON_VERSION}"
kubectl apply -f "https://github.com/k-orc/openstack-resource-controller/releases/download/v${KORC}/install.yaml"

echo ""
Expand Down
3 changes: 3 additions & 0 deletions set-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ echo "File downloaded successfully"
set_env_vars "$DEST_URL"

# export just the values that we care about into the current session
export CLUSTER_API=$CLUSTER_API
echo "Set CLUSTER_API=$CLUSTER_API"

export ADDON_VERSION=$ADDON_PROVIDER
echo "Set ADDON_VERSION=$ADDON_PROVIDER"

Expand Down