55 - develop
66 - main
77 - feature**
8+ - CSPL-3776-vcluster-enablement
89jobs :
910 build-operator-image :
1011 runs-on : ubuntu-latest
@@ -51,16 +52,16 @@ jobs:
5152 matrix :
5253 test :
5354 [
54- appframeworksS1 ,
55- managerappframeworkc3,
56- managerappframeworkm4,
57- managersecret,
58- managersmartstore,
59- managermc1,
60- managermc2,
61- managercrcrud,
62- licensemanager,
63- managerdeletecr,
55+ appframeworks1 ,
56+ # managerappframeworkc3,
57+ # managerappframeworkm4,
58+ # managersecret,
59+ # managersmartstore,
60+ # managermc1,
61+ # managermc2,
62+ # managercrcrud,
63+ # licensemanager,
64+ # managerdeletecr,
6465 ]
6566 runs-on : ubuntu-latest
6667 needs : build-operator-image
@@ -84,16 +85,15 @@ jobs:
8485 ENTERPRISE_LICENSE_LOCATION : ${{ secrets.ENTERPRISE_LICENSE_LOCATION }}
8586 CLUSTER_WIDE : " true"
8687 DEPLOYMENT_TYPE : " "
88+ TEST_CLUSTER_NAME : cspl-3776-vcluster-test
89+ TEST_VCLUSTER_NAME : eks-integ-${{ matrix.test }}-${{ github.run_id }}
8790 steps :
88- - name : Set Test Cluster Name
89- run : |
90- echo "TEST_CLUSTER_NAME=eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID" >> $GITHUB_ENV
9191 - name : Set Test Cluster Nodes and Parallel Runs
9292 run : >-
93- if grep -q "appframework" <<< "${{ matrix.test }}"; then
94- echo "CLUSTER_WORKERS=5" >> $GITHUB_ENV
95- echo "CLUSTER_NODES=2" >> $GITHUB_ENV
96- fi
93+ if grep -q "appframework" <<< "${{ matrix.test }}"; then
94+ echo "CLUSTER_WORKERS=5" >> $GITHUB_ENV
95+ echo "CLUSTER_NODES=2" >> $GITHUB_ENV
96+ fi
9797 - name : Checkcout code
9898 uses : actions/checkout@v2
9999 - name : Dotenv Action
@@ -127,7 +127,7 @@ jobs:
127127 curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
128128 chmod 700 get_helm.sh
129129 ./get_helm.sh
130- DESIRED_VERSION=v3.8.2 bash get_helm.sh
130+ DESIRED_VERSION=v3.10.0 bash get_helm.sh
131131 - name : Install EKS CTL
132132 run : |
133133 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
@@ -158,10 +158,14 @@ jobs:
158158 run : |
159159 docker tag ${{ env.SPLUNK_ENTERPRISE_IMAGE }} ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_ENTERPRISE_IMAGE }}
160160 docker push ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_ENTERPRISE_IMAGE }}
161- - name : Create EKS cluster
162- run : |
163- export EKS_CLUSTER_K8_VERSION=${{ steps.dotenv.outputs.EKS_CLUSTER_K8_VERSION }}
164- make cluster-up
161+ - name : Login to test cluster
162+ run : |
163+ echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
164+ eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
165+ - name : Install vCluster CLI
166+ uses : loft-sh/setup-vcluster@main
167+ - name : Create Virtual Cluster
168+ run : vcluster create ${TEST_VCLUSTER_NAME}
165169 - name : install metric server
166170 run : |
167171 kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
@@ -192,10 +196,8 @@ jobs:
192196 run : |
193197 make cleanup
194198 make clean
195- - name : Cleanup up EKS cluster
196- if : ${{ always() }}
197- run : |
198- make cluster-down
199+ - name : Delete Virtual Cluster
200+ run : vcluster delete ${TEST_VCLUSTER_NAME}
199201 # - name: Test Report
200202 # uses: dorny/test-reporter@v1
201203 # if: success() || failure() # run this step even if previous step failed
0 commit comments