Skip to content

Commit 9e5a82e

Browse files
authored
Merge pull request #77 from stefanprodan/fix-e2e-bootstrap
Fix e2e tests after bootstrap
2 parents 61daffd + 413cb07 commit 9e5a82e

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/e2e.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,23 @@ jobs:
2828
kubectl -n flux-system create cm istio-version --from-literal=service=NodePort
2929
- name: Setup cluster reconciliation
3030
run: |
31-
flux create source git flux-system \
32-
--url=${{ github.event.repository.html_url }} \
33-
--branch=${GITHUB_REF#refs/heads/}
31+
kubectl apply -f - <<EOF > cat
32+
apiVersion: source.toolkit.fluxcd.io/v1beta2
33+
kind: GitRepository
34+
metadata:
35+
name: flux-system
36+
namespace: flux-system
37+
spec:
38+
interval: 15m
39+
ref:
40+
branch: ${GITHUB_REF#refs/heads/}
41+
url: ${{ github.event.repository.html_url }}
42+
ignore: |
43+
/clusters/my-cluster/flux-system/
44+
EOF
45+
46+
kubectl -n flux-system wait gitrepository/flux-system --for=condition=ready --timeout=1m
47+
3448
flux create kustomization flux-system \
3549
--source=flux-system \
3650
--path=./clusters/my-cluster

0 commit comments

Comments
 (0)