Skip to content

Commit ddb44ab

Browse files
author
Kerkesni
committed
deploy metadata in end2end sharded tests
Issue: ZENKO-4414
1 parent e863a57 commit ddb44ab

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

.github/actions/deploy/action.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ runs:
8383
shell: bash
8484
run: sh tests/smoke/deploy-sorbet-resources.sh end2end
8585
working-directory: ./.github/scripts/end2end/operator
86+
- name: Deploy metadata
87+
shell: bash
88+
run: bash deploy-metadata.sh
89+
working-directory: ./.github/scripts/end2end
90+
if: ${{ env.ENABLE_RING_TESTS == 'true' }}
8691
- name: End-to-end configuration
8792
shell: bash
8893
run: bash configure-e2e.sh "end2end" ${E2E_IMAGE_NAME}:${E2E_IMAGE_TAG} "default"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
set -exu
4+
5+
# create a separate namespace for metadata
6+
kubectl create namespace metadata
7+
8+
# clone the metadata repository
9+
git init metadata
10+
cd metadata
11+
git fetch --depth 1 --no-tags https://${GIT_ACCESS_TOKEN}@github.com/scality/metadata.git
12+
git checkout FETCH_HEAD
13+
14+
# install metadata chart in a separate namespace
15+
cd helm
16+
helm dependency update cloudserver/
17+
helm install -n metadata \
18+
--set metadata.persistentVolume.storageClass='' \
19+
--set metadata.sproxyd.persistentVolume.storageClass='' \
20+
s3c cloudserver/
21+
22+
# wait for the repds to be ready
23+
kubectl -n metadata rollout status --watch --timeout=300s statefulset/s3c-metadata-repd
24+
25+
# Current chart uses an old version of bucketd that has issues reconnecting to the repd
26+
# when bucketd is started first. Restarting bucketd after repd is ready.
27+
kubectl -n metadata rollout restart deployment/s3c-metadata-bucketd
28+
29+
# wait for the bucketd to be ready
30+
kubectl -n metadata rollout status --watch --timeout=300s deploy/s3c-metadata-bucketd

.github/workflows/end2end.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,9 @@ jobs:
556556
needs: [build-kafka, build-test-image]
557557
runs-on:
558558
- ubuntu-22.04-8core
559-
# Enable this for Ring-based tests
560-
# - scality-cloud
559+
env:
560+
ENABLE_RING_TESTS: "true"
561+
GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}
561562
steps:
562563
- name: Checkout
563564
uses: actions/checkout@v4
@@ -573,8 +574,6 @@ jobs:
573574
registry: ghcr.io
574575
- name: Deploy Zenko
575576
uses: ./.github/actions/deploy
576-
env:
577-
GIT_ACCESS_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}
578577
- name: Run backbeat end to end tests
579578
run: bash run-e2e-test.sh "end2end" ${E2E_IMAGE_NAME}:${E2E_IMAGE_TAG} "backbeat" "default"
580579
working-directory: ./.github/scripts/end2end

0 commit comments

Comments
 (0)