From f2bbc79b610d78e17268772cad25fe61bae373a9 Mon Sep 17 00:00:00 2001 From: Ravind Kumar Date: Fri, 5 Mar 2021 12:08:48 -0500 Subject: [PATCH] Generate CRD docs using local code path I had some issues getting my GOPATH set up and tried pointing the CRD generator right at the v2 API files. And it worked, so we might as well make this a long-term change. Pointing at V2 only since V1 is deprecated. In the updated CRD reference I'll explicitly point users to the 3.0.29 tag for v1 CRD docs. Please test this locally to ensure it works - it should have no impact on non-doc operator functionality, but it's better safe than sorry. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fde7c914015..c2ab2faef76 100644 --- a/Makefile +++ b/Makefile @@ -67,7 +67,7 @@ regen-crd: regen-crd-docs: @which crd-ref-docs 1>/dev/null || (echo "Installing crd-ref-docs" && GO111MODULE=on go get github.com/elastic/crd-ref-docs) - @crd-ref-docs --source-path=${GOPATH}/src/github.com/minio/operator/pkg/apis --config=docs/templates/config.yaml --renderer=asciidoctor --output-path=docs/crd.adoc --templates-dir=docs/templates/asciidoctor/ + @crd-ref-docs --source-path=./pkg/apis/minio.min.io/v2 --config=docs/templates/config.yaml --renderer=asciidoctor --output-path=docs/crd.adoc --templates-dir=docs/templates/asciidoctor/ plugin: regen-crd @echo "Building 'kubectl-minio' binary"