Skip to content

Commit d9469bb

Browse files
unified setup
1 parent 9ab33c5 commit d9469bb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3391
-1999
lines changed

.devcontainer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
## Running CTST tests in the codespace
55

6-
To run the CTST tests in the codespace, simply head to `.github/script/end2end/` and run `run-e2e-ctst.sh` script.
6+
To run the CTST tests in the codespace, simply head to `tests/@setup/` and run the `run-tests.sh` script.
77

88
```bash
9-
cd .github/scripts/end2end/
10-
bash run-e2e-ctst.sh
9+
cd tests/@setup/
10+
./run-tests.sh ~/.kube/config ctst
1111
```
1212

1313
## Accessing s3 service

.devcontainer/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ done
5353
(
5454
cd .github/scripts/end2end
5555

56-
bash configure-e2e-ctst.sh
56+
bash configure-hosts.sh
5757
)
5858

5959
docker image prune -af
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build Setup Image
2+
description: Build the Zenko setup Docker image for use in Kubernetes Jobs
3+
4+
inputs:
5+
registry:
6+
description: 'Container registry to push to'
7+
required: false
8+
default: 'ghcr.io'
9+
image-name:
10+
description: 'Image name'
11+
required: false
12+
default: 'zenko-setup'
13+
tag:
14+
description: 'Image tag'
15+
required: false
16+
default: 'latest'
17+
push:
18+
description: 'Push image to registry'
19+
required: false
20+
default: 'true'
21+
22+
outputs:
23+
image:
24+
description: 'Full image name with tag'
25+
value: ${{ steps.meta.outputs.tags }}
26+
digest:
27+
description: 'Image digest'
28+
value: ${{ steps.build.outputs.digest }}
29+
30+
runs:
31+
using: composite
32+
steps:
33+
- name: Set up Docker Buildx
34+
uses: docker/setup-buildx-action@v3
35+
36+
- name: Log in to Container Registry
37+
if: ${{ inputs.push == 'true' }}
38+
uses: docker/login-action@v3
39+
with:
40+
registry: ${{ inputs.registry }}
41+
username: ${{ github.actor }}
42+
password: ${{ github.token }}
43+
44+
- name: Extract metadata
45+
id: meta
46+
uses: docker/metadata-action@v5
47+
with:
48+
images: ${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}
49+
tags: |
50+
type=ref,event=branch
51+
type=ref,event=pr
52+
type=sha,prefix={{branch}}-
53+
type=raw,value=${{ inputs.tag }}
54+
55+
- name: Build and push
56+
id: build
57+
uses: docker/build-push-action@v5
58+
with:
59+
context: tests/@setup
60+
file: tests/@setup/Dockerfile
61+
push: ${{ inputs.push }}
62+
tags: ${{ steps.meta.outputs.tags }}
63+
labels: ${{ steps.meta.outputs.labels }}
64+
cache-from: type=gha
65+
cache-to: type=gha,mode=max
66+
platforms: linux/amd64

.github/actions/deploy/action.yaml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ inputs:
77
description: "The tag of the Zenko Operator image to use"
88
required: false
99
default: ""
10-
deploy_metadata:
11-
description: "Deploy a metadata cluster alongside Zenko"
12-
required: false
13-
default: "false"
1410
runs:
1511
using: composite
1612
steps:
@@ -62,14 +58,6 @@ runs:
6258
shell: bash
6359
run: bash deploy-zenko.sh end2end default
6460
working-directory: ./.github/scripts/end2end
65-
- name: Add Keycloak user and assign StorageManager role
66-
shell: bash
67-
run: bash keycloak-helper.sh set-user-instance-ids default
68-
working-directory: ./.github/scripts/end2end
69-
- name: Start external service mocks
70-
shell: bash
71-
run: bash install-mocks.sh "default"
72-
working-directory: ./.github/scripts/end2end
7361
- name: Start mock sorbet service
7462
shell: bash
7563
run: sh tests/smoke/deploy-sorbet-resources.sh end2end
@@ -84,14 +72,9 @@ runs:
8472
env:
8573
SORBETD_NAME: mock-miria
8674
working-directory: ./.github/scripts/end2end/operator
87-
- name: Deploy metadata
88-
shell: bash
89-
run: ./deploy-metadata.sh
90-
working-directory: ./.github/scripts/end2end
91-
if: ${{ inputs.deploy_metadata == 'true' }}
92-
- name: End-to-end configuration
75+
- name: Configure DNS for CTST
9376
shell: bash
94-
run: bash configure-e2e.sh "end2end" ${E2E_IMAGE_NAME}:${E2E_IMAGE_TAG} "default"
77+
run: bash configure-hosts.sh
9578
working-directory: ./.github/scripts/end2end
9679
- name: Linting
9780
shell: bash

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

Lines changed: 0 additions & 122 deletions
This file was deleted.
File renamed without changes.

.github/scripts/end2end/deploy-metadata.sh

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/scripts/end2end/enable-https.sh

Lines changed: 0 additions & 87 deletions
This file was deleted.

0 commit comments

Comments
 (0)