Add validation for collectors and support bundle in e2e

This commit is contained in:
Marc Campbell
2020-06-12 10:23:28 -07:00
parent 65f957db81
commit 91e856d6d5
3 changed files with 42 additions and 0 deletions

View File

@@ -58,6 +58,41 @@ jobs:
- run: chmod +x bin/preflight
- run: bin/preflight --interactive=false --format=json https://preflight.replicated.com
compile-supportbundle:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/setup-go@v1
with:
go-version: '1.14'
- name: setup env
run: |
echo "::set-env name=GOPATH::$(go env GOPATH)"
echo "::add-path::$(go env GOPATH)/bin"
shell: bash
- uses: actions/checkout@master
- run: make support-bundle
- uses: actions/upload-artifact@v1
with:
name: support-bundle
path: bin/support-bundle
validate-supportbundle:
runs-on: ubuntu-latest
needs: compile-support-bundle
steps:
- name: Download support-bundle binary
uses: actions/download-artifact@v1
with:
name: support-bundle
path: bin/
- uses: engineerd/setup-kind@v0.2.0
- run: chmod +x bin/support-bundle
- uses: actions/checkout@v1
- run: bin/support-bundle ./examples/troubleshoot/sample-collectors.yaml
- run: bin/support-bundle ./examples/troubleshoot/sample-supportbundle.yaml
- run: bin/support-bundle https://kots.io
goreleaser:
runs-on: ubuntu-latest
needs:

View File

@@ -0,0 +1,7 @@
apiVersion: troubleshoot.replicated.com/v1beta1
kind: SupportBundle
metadata:
name: supportbundle-sample
spec:
collectors: []
analyzers: []