-
Notifications
You must be signed in to change notification settings - Fork 328
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update repo docs without PR * added docs * include changelog to docs * fixed duplication * use single gpg * pr comments
- Loading branch information
1 parent
7ff6a0a
commit 56af639
Showing
60 changed files
with
368 additions
and
87 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
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 |
---|---|---|
|
@@ -3,15 +3,17 @@ HELM_DOCS_IMAGE = jnorwood/helm-docs:v1.15-fork | |
CT_IMAGE = quay.io/helmpack/chart-testing:v3.11.0 | ||
HELM?=helm-docker | ||
CT?=ct-docker | ||
CONTAINER ?= docker | ||
CONTAINER_TOOL ?= docker | ||
REPODIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
WORKDIR := $(REPODIR)/.. | ||
|
||
include $(shell find charts -name Makefile) | ||
|
||
ifeq ($(CONTAINER),docker) | ||
ifeq ($(CONTAINER_TOOL),docker) | ||
CONTAINER_USER_OPTION = --user $(shell id -u):$(shell id -g) | ||
CONTAINER_VOLUME_OPTION_SUFFIX = | ||
else | ||
ifeq ($(CONTAINER),podman) | ||
ifeq ($(CONTAINER_TOOL),podman) | ||
CONTAINER_USER_OPTION = | ||
CONTAINER_VOLUME_OPTION_SUFFIX = :z | ||
else | ||
|
@@ -21,7 +23,7 @@ endif | |
|
||
helm-docker: | ||
mkdir -p .helm/cache | ||
$(CONTAINER) run --rm --name helm-exec \ | ||
$(CONTAINER_TOOL) run --rm --name helm-exec \ | ||
$(CONTAINER_USER_OPTION) \ | ||
--volume "$(PWD):/helm-charts$(CONTAINER_VOLUME_OPTION_SUFFIX)" \ | ||
--volume "$(PWD)/.github/ci/helm-repos.yaml:/helm-charts/.helm/config/repositories.yaml$(CONTAINER_VOLUME_OPTION_SUFFIX)" \ | ||
|
@@ -38,7 +40,7 @@ helm-local: | |
|
||
ct-docker: | ||
mkdir -p .helm/cache | ||
$(CONTAINER) run --rm --name helm-exec \ | ||
$(CONTAINER_TOOL) run --rm --name helm-exec \ | ||
$(CONTAINER_USER_OPTION) \ | ||
--volume "$(PWD):/helm-charts$(CONTAINER_VOLUME_OPTION_SUFFIX)" \ | ||
--volume "$(PWD)/.github/ci/helm-repos.yaml:/helm-charts/.helm/config/repositories.yaml$(CONTAINER_VOLUME_OPTION_SUFFIX)" \ | ||
|
@@ -91,18 +93,34 @@ lint-local: | |
template-local: | ||
HELM="helm-local" $(MAKE) template | ||
|
||
init: | ||
CMD="repo add prometheus-community https://prometheus-community.github.io/helm-charts" $(MAKE) $(HELM) | ||
CMD="repo add grafana https://grafana.github.io/helm-charts" $(MAKE) $(HELM) | ||
CMD="repo update" $(MAKE) $(HELM) | ||
|
||
gen-docs: | ||
$(CONTAINER) build $(PWD)/hack/docs \ | ||
$(CONTAINER_TOOL) build $(PWD)/hack/docs \ | ||
-t $(HELM_DOCS_IMAGE) && \ | ||
$(CONTAINER) run --rm \ | ||
$(CONTAINER_TOOL) run --rm \ | ||
$(CONTAINER_USER_OPTION) \ | ||
--volume "$(PWD):/helm-charts$(CONTAINER_VOLUME_OPTION_SUFFIX)" \ | ||
-w /helm-charts \ | ||
--entrypoint /bin/helm-docs \ | ||
$(HELM_DOCS_IMAGE) \ | ||
-t hack/docs/template.tmpl -t README.md.gotmpl | ||
|
||
docs-image: | ||
if [ ! -d $(WORKDIR)/vmdocs ]; then \ | ||
git clone --depth 1 [email protected]:VictoriaMetrics/vmdocs $(WORKDIR)/vmdocs; \ | ||
fi; \ | ||
cd $(WORKDIR)/vmdocs && \ | ||
git checkout main && \ | ||
git pull origin main && \ | ||
cd $(REPODIR) && \ | ||
$(CONTAINER_TOOL) build \ | ||
-t vmdocs \ | ||
$(WORKDIR)/vmdocs | ||
|
||
docs-debug: docs-image gen-docs | ||
$(CONTAINER_TOOL) run \ | ||
--rm \ | ||
--name vmdocs \ | ||
-p 1313:1313 \ | ||
-v ./:/opt/docs/content/helm \ | ||
$(foreach chart,$(wildcard charts/*), -v ./$(chart):/opt/docs/content/helm/$(basename $(chart))) \ | ||
vmdocs |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
weight: 0 | ||
title: Helm Charts | ||
menu: | ||
docs: | ||
weight: 0 | ||
aliases: | ||
- /helm/ | ||
- /helm/index.html | ||
--- | ||
{{% content "README.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,5 +1,3 @@ | ||
# CHANGELOG for `victoria-logs-single` helm-chart | ||
|
||
## Next release | ||
|
||
- TODO | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 1 | ||
title: CHANGELOG | ||
menu: | ||
docs: | ||
weight: 1 | ||
identifier: helm-victoria-logs-single-changelog | ||
parent: helm-victoria-logs-single | ||
url: /helm/victoria-logs-single/changelog | ||
aliases: | ||
- /helm/victoria-logs-single/changelog/index.html | ||
--- | ||
{{% content "CHANGELOG.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 1 | ||
title: VictoriaLogs Single | ||
menu: | ||
docs: | ||
parent: helm | ||
weight: 1 | ||
identifier: helm-victorialogs-single | ||
aliases: | ||
- /helm/victorialogs-single/ | ||
- /helm/victorialogs-single/index.html | ||
--- | ||
{{% content "README.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,5 +1,3 @@ | ||
# CHANGELOG for `victoria-metrics-agent` helm-chart | ||
|
||
## Next release | ||
|
||
- TODO | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 1 | ||
title: CHANGELOG | ||
menu: | ||
docs: | ||
weight: 1 | ||
identifier: helm-victoria-metrics-agent-changelog | ||
parent: helm-victoria-metrics-agent | ||
url: /helm/victoria-metrics-agent/changelog | ||
aliases: | ||
- /helm/victoria-metrics-agent/changelog/index.html | ||
--- | ||
{{% content "CHANGELOG.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 2 | ||
title: VictoriaMetrics Agent | ||
menu: | ||
docs: | ||
parent: helm | ||
weight: 2 | ||
identifier: helm-victoriametrics-agent | ||
aliases: | ||
- /helm/victoriametrics-agent/ | ||
- /helm/victoriametrics-agent/index.html | ||
--- | ||
{{% content "README.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,5 +1,3 @@ | ||
# CHANGELOG for `victoria-metrics-alert` helm-chart | ||
|
||
## Next release | ||
|
||
- TODO | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 1 | ||
title: CHANGELOG | ||
menu: | ||
docs: | ||
weight: 1 | ||
identifier: helm-victoria-metrics-alert-changelog | ||
parent: helm-victoria-metrics-alert | ||
url: /helm/victoria-metrics-alert/changelog | ||
aliases: | ||
- /helm/victoria-metrics-alert/changelog/index.html | ||
--- | ||
{{% content "CHANGELOG.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 3 | ||
title: VictoriaMetrics Alert | ||
menu: | ||
docs: | ||
parent: helm | ||
weight: 3 | ||
identifier: helm-victoriametrics-alert | ||
aliases: | ||
- /helm/victoriametrics-alert/ | ||
- /helm/victoriametrics-alert/index.html | ||
--- | ||
{{% content "README.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,5 +1,3 @@ | ||
# CHANGELOG for `victoria-metrics-anomaly` helm-chart | ||
|
||
## Next release | ||
|
||
- TODO | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 1 | ||
title: CHANGELOG | ||
menu: | ||
docs: | ||
weight: 1 | ||
identifier: helm-victoria-metrics-anomaly-changelog | ||
parent: helm-victoria-metrics-anomaly | ||
url: /helm/victoria-metrics-anomaly/changelog | ||
aliases: | ||
- /helm/victoria-metrics-anomaly/changelog/index.html | ||
--- | ||
{{% content "CHANGELOG.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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
weight: 4 | ||
title: VictoriaMetrics Anomaly | ||
menu: | ||
docs: | ||
parent: helm | ||
weight: 4 | ||
identifier: helm-victoriametrics-anomaly | ||
aliases: | ||
- /helm/victoriametrics-anomaly/ | ||
- /helm/victoriametrics-anomaly/index.html | ||
--- | ||
{{% content "README.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
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
Oops, something went wrong.