forked from fluxcd/flux2-multi-tenancy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
- Loading branch information
1 parent
c14e10f
commit f3389cd
Showing
1 changed file
with
47 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: e2e | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'main' | ||
tags-ignore: | ||
- '*' | ||
|
||
jobs: | ||
kubernetes: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup tools | ||
uses: ./.github/actions/tools | ||
- name: Setup Flux | ||
uses: fluxcd/flux2/action@main | ||
- name: Setup Kubernetes | ||
uses: engineerd/setup-kind@v0.5.0 | ||
- name: Install Flux in Kubernetes Kind | ||
run: flux install | ||
- name: Setup cluster reconciliation | ||
run: | | ||
flux create source git flux-system \ | ||
--url=${{ github.event.repository.html_url }} \ | ||
--branch=${GITHUB_REF#refs/heads/} | ||
flux create kustomization flux-system \ | ||
--source=flux-system \ | ||
--path=./clusters/staging | ||
- name: Verify cluster reconciliation | ||
run: | | ||
kubectl -n flux-system wait kustomization/kyverno --for=condition=ready --timeout=1m | ||
kubectl -n flux-system wait kustomization/kyverno-policies --for=condition=ready --timeout=1m | ||
kubectl -n flux-system wait kustomization/tenants --for=condition=ready --timeout=1m | ||
- name: Verify tenant reconciliation | ||
run: | | ||
kubectl -n apps wait kustomization/dev-team --for=condition=ready --timeout=1m | ||
kubectl -n apps wait helmrelease/podinfo --for=condition=ready --timeout=1m | ||
- name: Debug failure | ||
if: failure() | ||
run: | | ||
kubectl -n flux-system get all | ||
kubectl -n flux-system logs deploy/source-controller | ||
kubectl -n flux-system logs deploy/kustomize-controller | ||
kubectl -n flux-system logs deploy/helm-controller |