forked from rancher/fleet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates from PR 778 review
- Loading branch information
Mario Manno
committed
Jun 10, 2022
1 parent
5d25736
commit bd1761e
Showing
1 changed file
with
12 additions
and
11 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 |
---|---|---|
|
@@ -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/[email protected] | ||
- | ||
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,36 +70,37 @@ 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 | ||
kubectl -n fleet-system rollout status deploy/fleet-controller | ||
{ 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 | ||
|