Skip to content

Commit 2a1dbc9

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

14 files changed

+48
-46
lines changed

.github/workflows/arm-AL2023-build-test-push-workflow-AL2023.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
matrix:
118118
test: [
119119
basic,
120-
appframeworksS1,
120+
appframeworks1,
121121
managersecret,
122122
managermc,
123123
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
matrix:
6161
test:
6262
[
63-
appframeworksS1,
63+
appframeworks1,
6464
managersecret,
6565
managersmartstore,
6666
managermc1,

.github/workflows/arm-RHEL-build-test-push-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
matrix:
6161
test:
6262
[
63-
appframeworksS1,
63+
appframeworks1,
6464
managersecret,
6565
managersmartstore,
6666
managermc1,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
matrix:
6161
test:
6262
[
63-
appframeworksS1,
63+
appframeworks1,
6464
managersecret,
6565
managersmartstore,
6666
managermc1,

.github/workflows/arm-Ubuntu-build-test-push-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
matrix:
118118
test: [
119119
basic,
120-
appframeworksS1,
120+
appframeworks1,
121121
managersecret,
122122
managermc,
123123
]

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
matrix:
6161
test:
6262
[
63-
appframeworksS1,
63+
appframeworks1,
6464
managersecret,
6565
managersmartstore,
6666
managermc1,

.github/workflows/build-test-push-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
matrix:
162162
test: [
163163
basic,
164-
appframeworksS1,
164+
appframeworks1,
165165
managerappframeworkc3,
166166
managerappframeworkm4,
167167
managersecret,

.github/workflows/distroless-build-test-push-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
matrix:
161161
test: [
162162
basic,
163-
appframeworksS1,
163+
appframeworks1,
164164
managerappframeworkc3,
165165
managerappframeworkm4,
166166
managersecret,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
matrix:
5555
test:
5656
[
57-
appframeworksS1,
57+
appframeworks1,
5858
managerappframeworkc3,
5959
managerappframeworkm4,
6060
managersecret,

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

Lines changed: 19 additions & 17 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
@@ -51,7 +52,7 @@ jobs:
5152
matrix:
5253
test:
5354
[
54-
appframeworksS1,
55+
appframeworks1,
5556
managerappframeworkc3,
5657
managerappframeworkm4,
5758
managersecret,
@@ -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

Comments
 (0)