-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into laverya/redactor-re…
…format
- Loading branch information
Showing
45 changed files
with
1,379 additions
and
761 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 |
---|---|---|
|
@@ -56,7 +56,42 @@ jobs: | |
path: bin/ | ||
- uses: engineerd/[email protected] | ||
- run: chmod +x bin/preflight | ||
- run: bin/preflight --interactive=false --format=json https://preflight.replicated.com | ||
- 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-supportbundle | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Download support-bundle binary | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: support-bundle | ||
path: bin/ | ||
- uses: engineerd/[email protected] | ||
- run: chmod +x bin/support-bundle | ||
- 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 | ||
|
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 |
---|---|---|
|
@@ -67,8 +67,9 @@ vet: | |
|
||
.PHONY: generate | ||
generate: controller-gen client-gen | ||
$(shell go env GOPATH)/bin/controller-gen object:headerFile=./hack/boilerplate.go.txt paths=./pkg/apis/... | ||
$(shell go env GOPATH)/bin/client-gen \ | ||
$(CONTROLLER_GEN) \ | ||
object:headerFile=./hack/boilerplate.go.txt paths=./pkg/apis/... | ||
$(CLIENT_GEN) \ | ||
--output-package=github.com/replicatedhq/troubleshoot/pkg/client \ | ||
--clientset-name troubleshootclientset \ | ||
--input-base github.com/replicatedhq/troubleshoot/pkg/apis \ | ||
|
@@ -84,8 +85,7 @@ schemas: fmt vet openapischema | |
go build ${LDFLAGS} -o bin/schemagen github.com/replicatedhq/troubleshoot/cmd/schemagen | ||
./bin/schemagen --output-dir ./schemas | ||
|
||
# find or download controller-gen | ||
# download controller-gen if necessary | ||
.PHONY: contoller-gen | ||
controller-gen: | ||
ifeq (, $(shell which controller-gen)) | ||
go get sigs.k8s.io/controller-tools/cmd/[email protected] | ||
|
@@ -94,10 +94,10 @@ else | |
CONTROLLER_GEN=$(shell which controller-gen) | ||
endif | ||
|
||
# find or download client-gen | ||
.PHONY: client-gen | ||
client-gen: | ||
ifeq (, $(shell which client-gen)) | ||
go get k8s.io/code-generator/cmd/client-gen@kubernetes-1.16.4 | ||
go get k8s.io/code-generator/cmd/client-gen@kubernetes-1.18.0 | ||
CLIENT_GEN=$(shell go env GOPATH)/bin/client-gen | ||
else | ||
CLIENT_GEN=$(shell which client-gen) | ||
|
@@ -128,7 +128,7 @@ run-preflight: preflight | |
|
||
.PHONY: run-troubleshoot | ||
run-troubleshoot: support-bundle | ||
./bin/support-bundle ./examples/troubleshoot/sample-troubleshoot.yaml | ||
./bin/support-bundle ./examples/troubleshoot/sample-supportbundle.yaml | ||
|
||
.PHONY: run-analyze | ||
run-analyze: analyze | ||
|
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.