-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (41 loc) · 1.42 KB
/
e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: e2e
on:
workflow_dispatch:
push:
branches: [ '*' ]
tags-ignore: [ '*' ]
jobs:
kubernetes:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flux
uses: fluxcd/flux2/action@main
- name: Setup cluster fleet
run: make fleet-up
- name: Install Flux on the hub cluster
run: flux --context=kind-flux-hub install
- name: Setup cluster reconciliation
run: |
flux create source git flux-system \
--url=${{ github.event.repository.html_url }} \
--branch=${GITHUB_REF#refs/heads/} \
--username=${GITHUB_ACTOR} \
--password=${{ secrets.GITHUB_TOKEN }} \
--ignore-paths="hub/flux-system/"
flux create kustomization flux-system \
--source=flux-system \
--path="./hub"
- name: Verify clusters reconciliation
run: |
kubectl -n staging wait kustomization/apps --for=condition=ready --timeout=5m
kubectl -n production wait kustomization/apps --for=condition=ready --timeout=5m
- 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
flux get all --all-namespaces