-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 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,33 @@ | ||
--- | ||
# yamllint disable rule:quoted-strings | ||
name: fleet test | ||
|
||
"on": | ||
- push | ||
|
||
jobs: | ||
create-cluster: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: azure/[email protected] | ||
- uses: helm/kind-action@v1 | ||
with: | ||
version: v0.21.0 | ||
|
||
- run: kubectl get nodes | ||
- run: ip -c a | ||
- run: ip route | ||
|
||
- run: helm repo add fleet https://rancher.github.io/fleet-helm-charts/ | ||
- run: helm -n cattle-fleet-system install --create-namespace --wait fleet-crd fleet/fleet-crd | ||
- run: helm -n cattle-fleet-system install --create-namespace --wait fleet fleet/fleet | ||
- run: kubectl get pods -A | ||
- run: kubectl apply -f gitrepo-local.yaml | ||
- run: kubectl get clusters -A | ||
- run: kubectl get gitrepo -A | ||
# - run: ./wait-for-bundle.sh | ||
# timeout-minutes: 15 | ||
- uses: actions/checkout@v3 | ||
- name: Setup tmate session | ||
uses: mxschmitt/action-tmate@v3 |
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,17 @@ | ||
--- | ||
apiVersion: fleet.cattle.io/v1alpha1 | ||
kind: GitRepo | ||
metadata: | ||
name: local | ||
namespace: fleet-local | ||
spec: | ||
repo: https://github.com/lsst-it/k8s-cookbook | ||
branch: master | ||
keepResources: true | ||
paths: | ||
- fleet/s/dev/c/ruka/* | ||
targets: | ||
- name: ruka | ||
clusterName: ruka | ||
correctDrift: | ||
enabled: false # XXX do not enable because of rook |
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,7 @@ | ||
#!/bin/sh | ||
|
||
while true; do | ||
kubectl -n fleet-local wait --for=condition=ready bundle -l bundle=metallb --timeout=10s | ||
kubectl get bundle -A | ||
sleep 5 | ||
done |