Skip to content

Commit b57aa7c

Browse files
committed
do not deploy crr locations in pra job
Issue: ZENKO-5069
1 parent 3e923f5 commit b57aa7c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/scripts/end2end/configure-e2e.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ kubectl run ${POD_NAME} \
113113
--env=CRR_SOURCE_ACCOUNT_NAME=${CRR_SOURCE_ACCOUNT_NAME} \
114114
--env=CRR_DESTINATION_ACCOUNT_NAME=${CRR_DESTINATION_ACCOUNT_NAME} \
115115
--env=CRR_ROLE_NAME=${CRR_ROLE_NAME} \
116+
--env=DEPLOY_CRR_LOCATIONS=${DEPLOY_CRR_LOCATIONS} \
116117
--command -- python3 configuration.py
117118

118119
## wait for updates to trigger zenko upgrades

.github/workflows/end2end.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ env:
7474
GCP_SECRET_KEY: ${{ secrets.AWS_GCP_BACKEND_SECRET_KEY }}
7575
GCP_BACKEND_SERVICE_KEY: ${{ secrets.GCP_BACKEND_SERVICE_KEY }}
7676
GCP_BACKEND_SERVICE_EMAIL: ${{ secrets.GCP_BACKEND_SERVICE_EMAIL }}
77+
DEPLOY_CRR_LOCATIONS: "true"
7778
CRR_SOURCE_LOCATION_NAME: crr-source-location
7879
CRR_DESTINATION_LOCATION_NAME: crr-destination-location
7980
CRR_SOURCE_ACCOUNT_NAME: crr-source-account
@@ -438,6 +439,8 @@ jobs:
438439
end2end-pra:
439440
needs: [build-kafka, lint-and-build-ctst]
440441
runs-on: ubuntu-24.04-16core
442+
env:
443+
DEPLOY_CRR_LOCATIONS: "false"
441444
steps:
442445
- name: Checkout
443446
uses: actions/checkout@v4

tests/zenko_tests/e2e_config/locations.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ def create_location(client, uuid, location, accounts_creds):
7979
ENABLE_RING_TESTS = os.environ['ENABLE_RING_TESTS']
8080
if ENABLE_RING_TESTS == "false" and location["locationType"] == "location-scality-ring-s3-v1":
8181
return
82-
82+
83+
DEPLOY_CRR_LOCATIONS = os.getenv('DEPLOY_CRR_LOCATIONS', 'true')
8384
if location["locationType"] == "location-scality-crr-v1":
85+
if DEPLOY_CRR_LOCATIONS == "false":
86+
return
87+
8488
account_name = os.environ['CRR_SOURCE_ACCOUNT_NAME']
8589
if location["name"] == os.environ['CRR_DESTINATION_LOCATION_NAME']:
8690
account_name = os.environ['CRR_DESTINATION_ACCOUNT_NAME']

0 commit comments

Comments
 (0)