-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed configuration for multitenant tests Added/modified CI to run and tests cluster also in multitenant configuration
- Loading branch information
Showing
6 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
name: Package and lint | ||
|
||
name: Test helm chart | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- 'v*' | ||
jobs: | ||
ci: | ||
package-lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
variant-values: ['ci-multitenant-values.yaml', 'ci-edge-values.yaml'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup helm CLI | ||
|
@@ -32,7 +34,21 @@ jobs: | |
- uses: actions/setup-python@v3 | ||
- uses: gabe565/setup-helm-docs-action@v1 | ||
- uses: pre-commit/[email protected] | ||
- name: Create kind cluster | ||
test-cluster: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup helm CLI | ||
uses: azure/setup-helm@v3 | ||
with: | ||
# this is needed only temporarily - see https://github.com/helm/helm/issues/12423 | ||
version: 3.12.3 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Install kubectl | ||
uses: azure/setup-kubectl@v3 | ||
- name: Build helm dependencies | ||
run: | | ||
helm dependency build .- name: Create kind cluster | ||
uses: helm/[email protected] | ||
- name: Install chart prerequisites | ||
env: | ||
|
@@ -50,10 +66,10 @@ jobs: | |
kubectl apply -f lic-secret.yaml | ||
- name: Install helm chart | ||
env: | ||
TENANT_1_ID: ${{ secrets.TENANT_1_ID }} | ||
TENANT_1_SECRET: ${{ secrets.TENANT_1_SECRET }} | ||
TENANT_2_SECRET: ${{ secrets.TENANT_2_SECRET }} | ||
run: | | ||
helm install smartface . -f ci-values.yaml --set tests.authentication.tenant1.clientId="$TENANT_1_ID" --set tests.authentication.tenant1.clientSecret="$TENANT_1_SECRET" | ||
helm install smartface . -f ci-values.yaml --set tests.authentication.tenant1.clientSecret="$TENANT_1_SECRET" --set tests.authentication.tenant2.clientSecret="$TENANT_2_SECRET" -f ${{ matrix.variant-values }} | ||
kubectl rollout status deployment sf-api --timeout=300s | ||
kubectl wait --for=condition=complete job/sf-wl-update-log-population --timeout=300s | ||
- name: Test helm chart | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters