forked from falcosecurity/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(event-generator): remove values table from README.md
The values table lives in a separate file and is referenced in the README.md file through a hypelink. Further more the helm documentation is generated using docker instead of downloading the binary for helm-docs. Signed-off-by: Aldo Lacuku <[email protected]>
- Loading branch information
Showing
5 changed files
with
25 additions
and
58 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
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 |
---|---|---|
@@ -1,31 +1,11 @@ | ||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) | ||
ifeq (,$(shell go env GOBIN)) | ||
GOBIN=$(shell go env GOPATH)/bin | ||
else | ||
GOBIN=$(shell go env GOBIN) | ||
endif | ||
|
||
#generate helm documentation | ||
docs: helm-docs | ||
$(HELM_DOCS) -t README.gotmpl -o ./generated/helm-values.md | ||
cat ./generated/helm-values.md >> README.md | ||
DOCS_IMAGE_VERSION="v1.11.0" | ||
|
||
helm-docs: | ||
ifeq (, $(shell which helm-docs)) | ||
@{ \ | ||
set -e ;\ | ||
HELM_DOCS_TMP_DIR=$$(mktemp -d) ;\ | ||
cd $$HELM_DOCS_TMP_DIR ;\ | ||
version=1.5.0 ;\ | ||
arch=x86_64 ;\ | ||
echo $$HELM_DOCS_PATH ;\ | ||
echo https://github.com/norwoodj/helm-docs/releases/download/v$${version}/helm-docs_$${version}_linux_$${arch}.tar.gz ;\ | ||
curl -LO https://github.com/norwoodj/helm-docs/releases/download/v$${version}/helm-docs_$${version}_linux_$${arch}.tar.gz ;\ | ||
tar -zxvf helm-docs_$${version}_linux_$${arch}.tar.gz ;\ | ||
mv helm-docs $(GOBIN)/helm-docs ;\ | ||
rm -rf $$HELM_DOCS_TMP_DIR ;\ | ||
} | ||
HELM_DOCS=$(GOBIN)/helm-docs | ||
else | ||
HELM_DOCS=$(shell which helm-docs) | ||
endif | ||
docs: | ||
docker run \ | ||
--rm \ | ||
--workdir=/helm-docs \ | ||
--volume "$$(pwd):/helm-docs" \ | ||
-u $$(id -u) \ | ||
jnorwood/helm-docs:$(DOCS_IMAGE_VERSION) \ | ||
helm-docs -t ./README.gotmpl -o ./generated/helm-values.md |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
{{ template "chart.valuesTable" . | }} | ||
{{ template "chart.header" . }} | ||
{{ template "chart.description" . }} | ||
{{ template "chart.valuesSection" . }} | ||
|
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 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