Skip to content

Commit

Permalink
Update capi release script (#1576)
Browse files Browse the repository at this point in the history
Removed unnecessary steps after integration tests refactor
KU-1226
  • Loading branch information
maci3jka authored Sep 11, 2024
1 parent fe8d287 commit b226daa
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions jobs/microk8s/clusterapi/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,37 +129,6 @@ then
# deploy microk8s providers
kubectl apply -f bootstrap/bootstrap-components.yaml -f control-plane/control-plane-components.yaml

# Set cloud specific variables
export AWS_REGION=us-east-1
export AWS_SSH_KEY_NAME=capi
export CONTROL_PLANE_MACHINE_COUNT=3
export WORKER_MACHINE_COUNT=3
export AWS_CREATE_BASTION=false
export AWS_PUBLIC_IP=false
export AWS_CONTROL_PLANE_MACHINE_FLAVOR=t3.large
export AWS_NODE_MACHINE_FLAVOR=t3.large

# Optional varibles
export UPGRADE_STRATEGY=InPlaceUpgrade
export SNAP_RISKLEVEL="stable"
export SNAP_CONFINEMENT="classic"

# Create a cluster
export CLUSTER_NAME="test-ci-cluster"
export CAPI_UPGRADE_VERSION=v1.26.0
export CAPI_UPGRADE_MD_NAME=${CLUSTER_NAME}-md-0
export CAPI_UPGRADE_MD_TYPE=machinedeployments.cluster.x-k8s.io
export CAPI_UPGRADE_CP_NAME=${CLUSTER_NAME}-control-plane
export CAPI_UPGRADE_CP_TYPE=microk8scontrolplanes.controlplane.cluster.x-k8s.io
clusterctl generate cluster ${CLUSTER_NAME} --from "bootstrap/templates/cluster-template-aws.yaml" --kubernetes-version 1.25.0 > cluster.yaml
export CLUSTER_MANIFEST_FILE=$PWD/cluster.yaml

# Create a new cluster for in-place upgrades
CONTROL_PLANE_MACHINE_COUNT=1
WORKER_MACHINE_COUNT=1
clusterctl generate cluster ${CLUSTER_NAME} --from "bootstrap/templates/cluster-template-aws.yaml" --kubernetes-version 1.25.0 > cluster-inplace.yaml
export CLUSTER_INPLACE_MANIFEST_FILE=$PWD/cluster-inplace.yaml

(
cd bootstrap
make e2e
Expand Down

0 comments on commit b226daa

Please sign in to comment.