Capitalize gha workflow names
Updates from PR 778 review
@@ -5,8 +5,8 @@ on:
- cron: '0 5 30 * *'
workflow_dispatch:
inputs:
- debug_enabled:
- description: 'Run the build with tmate debugging enabled'
+ enable_tmate:
+ description: 'Enable debugging via tmate'
required: false
default: "false"
pull_request:
@@ -47,19 +47,19 @@ jobs:
name: Install Ginkgo CLI
run: go install github.com/onsi/ginkgo/v2/ginkgo@v2.1
-
- name: Build fleet binaries
+ name: Build Fleet Binaries
run: |
go build -o bin/fleetcontroller-linux-$GOARCH ./cmd/fleetcontroller
go build -o "bin/fleet-linux-$GOARCH"
go build -o "bin/fleetagent-linux-$GOARCH" ./cmd/fleetagent
-
- name: Build Docker images
+ name: Build Docker Images
run: |
docker build -f package/Dockerfile -t rancher/fleet:dev --build-arg="ARCH=$GOARCH" .
docker build -f package/Dockerfile.agent -t rancher/fleet-agent:dev --build-arg="ARCH=$GOARCH" .
-
- name: Set up k3d cluster
+ name: Set Up k3d Cluster
uses: AbsaOSS/k3d-action@v2
# k3d will automatically create a network named k3d-test-cluster-1 with the range 172.18.0.0/16
with:
@@ -70,18 +70,18 @@ jobs:
--agents 3
--network "nw01"
-
- name: K3d import images
+ name: K3d Import Images
run: |
k3d image import rancher/fleet:dev rancher/fleet-agent:dev -m direct
-
- name: Set up tmate debug session
- if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+ name: Set Up Tmate Debug Session
+ if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.enable_tmate }}
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15
with:
limit-access-to-actor: true
-
- name: Deploy standalone fleet
+ name: Deploy Standalone Fleet
run: |
helm -n fleet-system install --create-namespace --wait fleet-crd charts/fleet-crd
helm -n fleet-system upgrade --install --create-namespace --wait fleet charts/fleet
@@ -89,17 +89,18 @@ jobs:
{ grep -q -m 1 "fleet-agent"; kill $!; } < <(kubectl get deployment -n fleet-system -w)
kubectl -n fleet-system rollout status deploy/fleet-agent
-
- name: E2E tests for examples
+ name: E2E Tests for Examples
env:
FLEET_E2E_NS: fleet-local
run: |
ginkgo e2e/single-cluster
-
- name: Dump failed environment
+ name: Dump Failed Environment
if: failure()
run: |
mkdir -p tmp
kubectl get -A pod,secret,service,ingress -o json > tmp/cluster.json
+ kubectl get -A gitrepos,clusters,clustergroups,bundles,bundledeployments -o json > tmp/fleet.json
kubectl get -A events > tmp/events.log
helm list -A > tmp/helm.log
kubectl logs -n fleet-system -l app=fleet-controller > tmp/fleetcontroller.log
