9494 DEPLOYMENT_TYPE : " "
9595 ARM64 : " true"
9696 GRAVITON_TESTING : " true"
97+ TEST_CLUSTER_NAME : cspl-3776-vcluster-test-karpenter
98+ TEST_VCLUSTER_NAME : ubnt-int-${{ matrix.test }}-${{ github.run_id }}
9799 steps :
98- - name : Set Test Cluster Name
99- run : |
100- echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
101100 - name : Set Test Cluster Nodes and Parallel Runs
102101 run : >-
103102 if grep -q "appframework" <<< "${{ matrix.test }}"; then
@@ -137,7 +136,7 @@ jobs:
137136 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
138137 chmod 700 get_helm.sh
139138 ./get_helm.sh
140- DESIRED_VERSION=v3.8.2 bash get_helm.sh
139+ DESIRED_VERSION=v3.18.3 bash get_helm.sh
141140 - name : Install EKS CTL
142141 run : |
143142 curl --silent --insecure --location "https://github.com/weaveworks/eksctl/releases/download/${{ steps.dotenv.outputs.EKSCTL_VERSION }}/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
@@ -164,11 +163,14 @@ jobs:
164163 uses : aws-actions/amazon-ecr-login@v1
165164 - name : Pull Splunk Enterprise Image
166165 run : docker pull ${{ env.SPLUNK_ENTERPRISE_IMAGE }}
167- - name : Create EKS cluster
166+ - name : Login to test cluster
168167 run : |
169- export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
170- export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_ARM64 }}
171- make cluster-up
168+ echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
169+ eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
170+ - name : Install vCluster CLI
171+ uses : loft-sh/setup-vcluster@main
172+ - name : Create Virtual Cluster
173+ run : vcluster create ${TEST_VCLUSTER_NAME}
172174 - name : install metric server
173175 run : |
174176 kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
@@ -199,10 +201,9 @@ jobs:
199201 run : |
200202 make cleanup
201203 make clean
202- - name : Cleanup up EKS cluster
204+ - name : Delete Virtual Cluster
203205 if : ${{ always() }}
204- run : |
205- make cluster-down
206+ run : vcluster delete ${TEST_VCLUSTER_NAME}
206207 # - name: Test Report
207208 # uses: dorny/test-reporter@v1
208209 # if: success() || failure() # run this step even if previous step failed
0 commit comments