Skip to content

Commit

Permalink
Autogenerated readme (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bueti authored Oct 7, 2020
1 parent 77aabcd commit 6ff68e3
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 57 deletions.
6 changes: 3 additions & 3 deletions .github/helm-docs.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash
set -euo pipefail

HELM_DOCS_VERSION="0.11.0"
HELM_DOCS_VERSION="1.3.0"

# install helm-docs
curl --silent --show-error --fail --location --output /tmp/helm-docs.tar.gz https://github.com/norwoodj/helm-docs/releases/download/v"${HELM_DOCS_VERSION}"/helm-docs_"${HELM_DOCS_VERSION}"_Linux_x86_64.tar.gz
tar -xf /tmp/helm-docs.tar.gz helm-docs

# validate docs
# ./helm-docs
# git diff --exit-code
./helm-docs
git diff --exit-code
exit 0
3 changes: 2 additions & 1 deletion charts/promlens/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
apiVersion: v2
name: promlens
version: 0.1.4
version: 0.2.0
description: This Chart installs and configures PromLens
sources: ["https://github.com/ricardo-ch/helm-charts/tree/main/charts/promlens"]
maintainers:
- name: ricardo-ch
email: [email protected]
31 changes: 0 additions & 31 deletions charts/promlens/README.md

This file was deleted.

28 changes: 28 additions & 0 deletions charts/promlens/README.md.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# PromLens

{{ template "chart.deprecationWarning" . }}

{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}![Release Status](https://github.com/ricardo-ch/helm-charts/workflows/Release%20Charts/badge.svg)

This chart installs [PromLens](https://promlens.com/) from [PromLabs](https://promlabs.com/).

PromLens is a tool that makes learning and using PromQL easier and more productive. It integrates a visual query builder with explanation and visualization features.

## Helm Chart

This is an initial release, based on the Helm chart we are using to deploy the tool internally. Currently, there are multiple features of PromLens that this Chart doesn't provide. If something is missing, feel free to open and issue or submit a Pull Request.

### How To Install

Simply add this Chart repository to Helm:

```sh
➜ helm repo add ricardo https://ricardo-ch.github.io/helm-charts/
"ricardo" has been added to your repositories
```

{{ template "chart.valuesSection" . }}

{{ template "chart.sourcesSection" . }}

{{ template "helm-docs.versionFooter" . }}
10 changes: 5 additions & 5 deletions charts/promlens/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ spec:
spec:
containers:
- name: promlens
image: {{ .Values.image }}:{{ .Values.version }}
image: {{ .Values.image }}:{{ .Values.deployment.version }}
args:
- "--shared-links.gcs.bucket={{ .Values.shared_links_bucket_name }}"
- "--grafana.url={{ .Values.grafana_url }}"
- "--shared-links.gcs.bucket={{ .Values.config.shared_links_bucket_name }}"
- "--grafana.url={{ .Values.config.grafana_url }}"
- "--grafana.api-token"
- {{ .Values.grafana_api_key | quote }}
- {{ .Values.config.grafana_api_key | quote }}
- "--license.key"
- {{ .Values.license | quote }}
- {{ .Values.config.license | quote }}
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secret-files/gcs-cred.json
Expand Down
2 changes: 1 addition & 1 deletion charts/promlens/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ metadata:
heritage: {{ .Release.Service }}
type: Opaque
data:
gcs-cred.json: {{ .Values.gcs_sa | quote }}
gcs-cred.json: {{ .Values.config.gcs_sa | quote }}
34 changes: 18 additions & 16 deletions charts/promlens/values.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# -- Number of replicas
replicas: 1
# -- PromLens License
license: ""
# -- Grafana URL
grafana_url: ""
# -- Grafana API Key, see https://grafana.com/docs/grafana/latest/http_api/auth/
grafana_api_key: ""
# -- Google Cloud Storage Account
gcs_sa: ""
# -- Bucket Name in Storage Account
shared_links_bucket_name: promlens
# -- PromLens Conatiner Image
image: promlabs/promlens
# -- PromLens Container Image Version
version: latest
deployment:
# -- Number of replicas
replicas: 1
# -- PromLens Conatiner Image
image: promlabs/promlens
# -- PromLens Container Image Version
version: latest
config:
# -- PromLens License
license: ""
# -- Grafana URL
grafana_url: ""
# -- Grafana API Key, see https://grafana.com/docs/grafana/latest/http_api/auth/
grafana_api_key: ""
# -- Google Cloud Storage Account
gcs_sa: ""
# -- Bucket Name in Storage Account
shared_links_bucket_name: promlens

0 comments on commit 6ff68e3

Please sign in to comment.