-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile and helm-docs for value injection into readme
Adjust readme, add comments to values Bump chart version
- Loading branch information
Showing
6 changed files
with
227 additions
and
35 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
DOCS_IMAGE_VERSION="v1.14.2" | ||
|
||
LINT_IMAGE_VERSION="v3.8.0" | ||
|
||
# Charts's path relative to the current directory. | ||
CHARTS := $(wildcard ./charts/*) | ||
|
||
CHARTS_NAMES := $(notdir $(CHARTS)) | ||
|
||
.PHONY: lint | ||
lint: helm-deps-update $(addprefix lint-, $(CHARTS_NAMES)) | ||
|
||
lint-%: | ||
@docker run \ | ||
-it \ | ||
-e HOME=/home/ct \ | ||
--mount type=tmpfs,destination=/home/ct \ | ||
--workdir=/data \ | ||
--volume $$(pwd):/data \ | ||
-u $$(id -u) \ | ||
quay.io/helmpack/chart-testing:$(LINT_IMAGE_VERSION) \ | ||
ct lint --config ./ct.yaml --charts ./charts/$* | ||
|
||
.PHONY: docs | ||
docs: $(addprefix docs-, $(CHARTS_NAMES)) | ||
|
||
docs-%: | ||
@docker run \ | ||
--rm \ | ||
--workdir=/helm-docs \ | ||
--volume "$$(pwd):/helm-docs" \ | ||
-u $$(id -u) \ | ||
jnorwood/helm-docs:$(DOCS_IMAGE_VERSION) \ | ||
helm-docs -c ./charts/$* -t ./README.gotmpl -o ./README.md | ||
|
||
.PHONY: helm-deps-update | ||
helm-deps-update: $(addprefix helm-deps-update-, $(CHARTS_NAMES)) | ||
|
||
helm-deps-update-%: | ||
helm dependency update ./charts/$* |
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,66 @@ | ||
# LibreNMS | ||
{{ template "chart.badgesSection" . }} | ||
|
||
## TL;DR | ||
|
||
```shell | ||
$ helm repo add librenms https://www.librenms.org/helm-charts | ||
$ helm install my-release librenms/librenms --set appkey=<LibreNMS Application key> | ||
``` | ||
|
||
## Prerequisites | ||
|
||
- This chart has only been tested on Kubernetes 1.18+, but should work on 1.14+ | ||
- Recent versions of Helm 3 are supported | ||
|
||
## Installing the Chart | ||
|
||
To install the chart with the release name `my-release` and default configuration: | ||
|
||
```shell | ||
$ helm repo add librenms https://www.librenms.org/helm-charts | ||
$ helm install my-release librenms/librenms --set appkey=<LibreNMS Application key> | ||
``` | ||
|
||
## Values | ||
Check the [values.yaml](./values.yaml) file for the available settings for this chart and its | ||
dependencies. | ||
|
||
### Required values: | ||
``` | ||
librenms: | ||
appkey: | ||
``` | ||
|
||
This should be filled with a laravel appkey, this can be generated using the laravel artisan command: | ||
``` | ||
php artisan key:generate | ||
``` | ||
The value should look like: | ||
``` | ||
librenms: | ||
appkey: base64:RTMmh+i10E2RMcDxookMu47BTzJQy87hOU+k/zcuPnA= | ||
``` | ||
### Recommendations | ||
|
||
* `librenms.poller.replicas`: Depending on the scale of your installation, the amount of poller pods needs to b scaled up. Use the poller page in the LibreNMS interface to check for scaling issues. | ||
|
||
### Available values | ||
|
||
The following table lists the main configurable parameters of the {{ template "chart.name" . }} chart v{{ template "chart.version" . }} and their default values. Please, refer to [values.yaml](./values.yaml) for the full list of configurable parameters. | ||
|
||
{{ template "chart.valuesSection" . }} | ||
|
||
## Uninstalling the Chart | ||
|
||
To delete the chart: | ||
|
||
```shell | ||
$ helm delete my-release | ||
``` | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.maintainersSection" . }} | ||
|
||
{{ template "helm-docs.versionFooter" . }} |
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,9 @@ | ||
remote: origin | ||
validate-maintainers: false | ||
target-branch: main | ||
chart-repos: | ||
- librenms=https://www.librenms.org/helm-charts/ | ||
- bitnami=https://charts.bitnami.com/bitnami/ | ||
helm-extra-args: --timeout 800s | ||
chart-dirs: | ||
- charts |