Skip to content

Commit 9711329

Browse files
committed
CSPL-3776 Initial changes for int-tests build
1 parent 1871d25 commit 9711329

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

.github/workflows/int-test-workflow.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- develop
66
- main
77
- feature**
8+
- CSPL-3776-vcluster-enablement
89
jobs:
910
build-operator-image:
1011
runs-on: ubuntu-latest
@@ -65,8 +66,6 @@ jobs:
6566
runs-on: ubuntu-latest
6667
needs: build-operator-image
6768
env:
68-
CLUSTER_NODES: 1
69-
CLUSTER_WORKERS: 3
7069
SPLUNK_ENTERPRISE_IMAGE: ${{ secrets.SPLUNK_ENTERPRISE_IMAGE }}
7170
SPLUNK_OPERATOR_IMAGE_NAME: splunk/splunk-operator
7271
SPLUNK_OPERATOR_IMAGE_FILENAME: splunk-operator
@@ -84,16 +83,8 @@ jobs:
8483
ENTERPRISE_LICENSE_LOCATION: ${{ secrets.ENTERPRISE_LICENSE_LOCATION }}
8584
CLUSTER_WIDE: "true"
8685
DEPLOYMENT_TYPE: ""
86+
TEST_CLUSTER_NAME: eks-integration-test-cluster-${{ matrix.test }}-$GITHUB_RUN_ID
8787
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
91-
- name: Set Test Cluster Nodes and Parallel Runs
92-
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
9788
- name: Checkcout code
9889
uses: actions/checkout@v2
9990
- name: Dotenv Action
@@ -158,10 +149,14 @@ jobs:
158149
run: |
159150
docker tag ${{ env.SPLUNK_ENTERPRISE_IMAGE }} ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_ENTERPRISE_IMAGE }}
160151
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
152+
- name: Login to test cluster
153+
run: |
154+
echo "Retrieving kubeconfig for ${TEST_CLUSTER_NAME}"
155+
eksctl utils write-kubeconfig --cluster=${TEST_CLUSTER_NAME}
156+
- name: Install vCluster CLI
157+
uses: loft-sh/setup-vcluster@main
158+
- name: Create Virtual Cluster
159+
run: vcluster create ${TEST_CLUSTER_NAME} --project default
165160
- name: install metric server
166161
run: |
167162
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
@@ -192,10 +187,8 @@ jobs:
192187
run: |
193188
make cleanup
194189
make clean
195-
- name: Cleanup up EKS cluster
196-
if: ${{ always() }}
197-
run: |
198-
make cluster-down
190+
- name: Delete Virtual Cluster
191+
run: vcluster delete ${TEST_CLUSTER_NAME} --project default
199192
#- name: Test Report
200193
# uses: dorny/test-reporter@v1
201194
# if: success() || failure() # run this step even if previous step failed

0 commit comments

Comments
 (0)