From b1f8ad8dca3e0e4f53ae53a167d4ea88c47de295 Mon Sep 17 00:00:00 2001 From: Sanket Sudake Date: Mon, 22 Aug 2022 16:38:28 +0530 Subject: [PATCH] Remove usused files and refactor crd ref docs generation (#2516) Signed-off-by: Sanket Sudake Signed-off-by: Sanket Sudake --- .gitignore | 2 ++ Makefile | 9 +++++---- examples/nodejs/hello.js | 7 ------- plugins.yaml | 5 ----- tools/crd-ref-docs/config.yaml | 1 - 5 files changed, 7 insertions(+), 17 deletions(-) delete mode 100644 examples/nodejs/hello.js delete mode 100644 plugins.yaml diff --git a/.gitignore b/.gitignore index 3c526613..cf723caa 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,5 @@ local/ build/ dist/ manifest/ +.vscode/ +coverage.txt diff --git a/Makefile b/Makefile index 605b0e37..aded33a1 100644 --- a/Makefile +++ b/Makefile @@ -42,9 +42,7 @@ debug-vars: print-GOOS print-GOARCH print-GOAMD64 print-VERSION print-TIMESTAMP check: test-run build-fission-cli clean code-checks: - hack/verify-gofmt.sh - hack/verify-govet.sh - hack/verify-staticcheck.sh + golangci-lint run # run basic check scripts test-run: code-checks @@ -92,7 +90,10 @@ generate-swagger-doc: generate-cli-docs: go run tools/cmd-docs/main.go -o "../fission.io/content/en/docs/reference/fission-cli" -generate-crd-ref-docs: +install-crd-ref-docs: + go install github.com/elastic/crd-ref-docs@master + +generate-crd-ref-docs: install-crd-ref-docs # crd-ref-docs: https://github.com/elastic/crd-ref-docs crd-ref-docs --source-path=pkg/apis/core/v1 --config=tools/crd-ref-docs/config.yaml --renderer markdown cp tools/crd-ref-docs/header.md crd_docs.md diff --git a/examples/nodejs/hello.js b/examples/nodejs/hello.js deleted file mode 100644 index c7346744..00000000 --- a/examples/nodejs/hello.js +++ /dev/null @@ -1,7 +0,0 @@ - -module.exports = async (context) => { - return { - status: 200, - body: "hello, world!\n" - }; -} diff --git a/plugins.yaml b/plugins.yaml deleted file mode 100644 index 0c14dfb8..00000000 --- a/plugins.yaml +++ /dev/null @@ -1,5 +0,0 @@ -# plugins.yaml contains a basic registry of plugins for the CLI -workflows: - version: 0.4.0 - url: https://github.com/fission/fission-workflows/releases/tag/0.4.0 - usage: Inspect and manage workflow executions \ No newline at end of file diff --git a/tools/crd-ref-docs/config.yaml b/tools/crd-ref-docs/config.yaml index 1c01ef48..bdff1eac 100644 --- a/tools/crd-ref-docs/config.yaml +++ b/tools/crd-ref-docs/config.yaml @@ -1,7 +1,6 @@ processor: ignoreTypes: - "(CanaryConfig|Environment|Function|HTTPTrigger|KubernetesWatchTrigger|MessageQueueTrigger|Package|TimeTrigger)List$" - ignoreGroupVersions: render: # Version of Kubernetes to use when generating links to Kubernetes API documentation. kubernetesVersion: 1.22