Skip to content

Commit

Permalink
(WIP) (gha) add fleet test
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Mar 26, 2024
1 parent 6982c76 commit 0f18d4d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/fleet-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# yamllint disable rule:quoted-strings
name: fleet test

"on":
- push

jobs:
create-cluster:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: helm/kind-action@v1
with:
version: v0.21.0

- uses: azure/[email protected]

- 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: sleep 10
- run: kubectl get bundle -A
17 changes: 17 additions & 0 deletions gitrepo-local.yaml
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

0 comments on commit 0f18d4d

Please sign in to comment.