fixup! (WIP) (gha) add fleet test #81
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
--- | |
# yamllint disable rule:quoted-strings | |
name: fleet test | |
"on": | |
- push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
create-cluster: | |
runs-on: | |
group: Default Larger Runners | |
labels: ubuntu-latest-32-cores | |
steps: | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
detached: true | |
- uses: actions/checkout@v4 | |
- uses: azure/[email protected] | |
- uses: helm/kind-action@v1 | |
with: | |
cluster_name: fleet | |
version: v0.22.0 | |
- name: setup k alias | |
run: | | |
echo "alias k='kubectl'" >> ~./bashrc | |
echo "complete -F __start_kubectl k" >> ~./bashrc | |
- run: kubectl get nodes | |
- run: ip -c a | |
- run: ip route | |
- run: lsblk | |
- name: install macvlan cni plugin | |
run: | | |
curl https://github.com/containernetworking/plugins/releases/download/v1.4.1/cni-plugins-linux-amd64-v1.4.1.tgz -L -O | |
tar -xvf cni-plugins-linux-amd64-v1.4.1.tgz | |
docker cp macvlan fleet-control-plane:/opt/cni/bin | |
- name: install fleet | |
run: | | |
helm repo add fleet https://rancher.github.io/fleet-helm-charts/ | |
helm -n cattle-fleet-system install --create-namespace --wait fleet-crd fleet/fleet-crd | |
helm -n cattle-fleet-system install --create-namespace --wait fleet fleet/fleet --set agentCheckinInterval=15s | |
kubectl -n fleet-local patch clusters local --type merge --patch-file ./clusters-local.yaml | |
kubectl patch node fleet-control-plane --type merge --patch-file node-fleet-control-plane.yaml | |
kubectl apply -f gitrepo-local.yaml | |
- run: kubectl get clusters -A | |
- run: kubectl get gitrepo -A | |
- run: ./wait-for-bundle.sh | |
timeout-minutes: 60 |