Skip to content

Commit 91e856d

Browse files
committed
Add validation for collectors and support bundle in e2e
1 parent 65f957d commit 91e856d

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/workflows/build-test-deploy.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,41 @@ jobs:
5858
- run: chmod +x bin/preflight
5959
- run: bin/preflight --interactive=false --format=json https://preflight.replicated.com
6060

61+
compile-supportbundle:
62+
runs-on: ubuntu-latest
63+
needs: build
64+
steps:
65+
- uses: actions/setup-go@v1
66+
with:
67+
go-version: '1.14'
68+
- name: setup env
69+
run: |
70+
echo "::set-env name=GOPATH::$(go env GOPATH)"
71+
echo "::add-path::$(go env GOPATH)/bin"
72+
shell: bash
73+
- uses: actions/checkout@master
74+
- run: make support-bundle
75+
- uses: actions/upload-artifact@v1
76+
with:
77+
name: support-bundle
78+
path: bin/support-bundle
79+
80+
validate-supportbundle:
81+
runs-on: ubuntu-latest
82+
needs: compile-support-bundle
83+
steps:
84+
- name: Download support-bundle binary
85+
uses: actions/download-artifact@v1
86+
with:
87+
name: support-bundle
88+
path: bin/
89+
- uses: engineerd/[email protected]
90+
- run: chmod +x bin/support-bundle
91+
- uses: actions/checkout@v1
92+
- run: bin/support-bundle ./examples/troubleshoot/sample-collectors.yaml
93+
- run: bin/support-bundle ./examples/troubleshoot/sample-supportbundle.yaml
94+
- run: bin/support-bundle https://kots.io
95+
6196
goreleaser:
6297
runs-on: ubuntu-latest
6398
needs:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: troubleshoot.replicated.com/v1beta1
2+
kind: SupportBundle
3+
metadata:
4+
name: supportbundle-sample
5+
spec:
6+
collectors: []
7+
analyzers: []

0 commit comments

Comments
 (0)