statping - Fix #747 (#774)

* fixes #747

* fixes #747

* update docs

* use explicit name

* bump versoin, remove boolean, comment out admin env vars, and move them to the bottom so helm-docs renders properly

* use .chart.appVersion default via common so that tag is not redundant

* Update values.yaml

add back tag

* fix readme
This commit is contained in:
Nicholas St. Germain 2021-04-13 17:02:12 -05:00 committed by GitHub
parent ddc0f220df
commit 2ebef19019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 31 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: v0.90.65 appVersion: v0.90.74
description: Status page for monitoring your websites and applications description: Status page for monitoring your websites and applications
name: statping name: statping
version: 3.2.0 version: 3.2.1
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- statping - statping

View File

@ -1,6 +1,6 @@
# statping # statping
![Version: 3.2.0](https://img.shields.io/badge/Version-3.2.0-informational?style=flat-square) ![AppVersion: v0.90.65](https://img.shields.io/badge/AppVersion-v0.90.65-informational?style=flat-square) ![Version: 3.2.1](https://img.shields.io/badge/Version-3.2.1-informational?style=flat-square) ![AppVersion: v0.90.74](https://img.shields.io/badge/AppVersion-v0.90.74-informational?style=flat-square)
Status page for monitoring your websites and applications Status page for monitoring your websites and applications
@ -76,9 +76,6 @@ N/A
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| env.ADMIN_EMAIL | string | `"info@example.com"` | dashboard admin email |
| env.ADMIN_PASSWORD | string | `"admin"` | dashboard admin password (needed to edit) |
| env.ADMIN_USER | string | `"admin"` | dashboard admin user (needed to edit) |
| env.DB_CONN | string | `"postgres"` | Type of database to use | | env.DB_CONN | string | `"postgres"` | Type of database to use |
| env.DB_DATABASE | string | postgresql.postgresqlDatabase value | Postgres database password | | env.DB_DATABASE | string | postgresql.postgresqlDatabase value | Postgres database password |
| env.DB_HOST | string | internal postgresql URL | Postgres database hostname | | env.DB_HOST | string | internal postgresql URL | Postgres database hostname |
@ -92,7 +89,7 @@ N/A
| env.VIRTUAL_HOST | string | `""` | External URL you use to connect to the statping (the one you enter in your browser) | | env.VIRTUAL_HOST | string | `""` | External URL you use to connect to the statping (the one you enter in your browser) |
| image.pullPolicy | string | `"IfNotPresent"` | | | image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"statping/statping"` | | | image.repository | string | `"statping/statping"` | |
| image.tag | string | `"v0.90.65"` | | | image.tag | string | `v0.90.74` | |
| ingress.enabled | bool | `false` | | | ingress.enabled | bool | `false` | |
| persistence | object | see bellow | Generated application config.yaml and logs are written here. Usually does not need to be persisted. | | persistence | object | see bellow | Generated application config.yaml and logs are written here. Usually does not need to be persisted. |
| postgresql | object | see bellow | Bitnami postgres chart. For more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql | | postgresql | object | see bellow | Bitnami postgres chart. For more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql |
@ -134,5 +131,3 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Ask a [question](https://github.com/k8s-at-home/organization/discussions) - Ask a [question](https://github.com/k8s-at-home/organization/discussions)
- Join our [Discord](https://discord.gg/sTMX7Vh) community - Join our [Discord](https://discord.gg/sTMX7Vh) community
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)

View File

@ -4,21 +4,23 @@
{{/* use the port specified in the service */}} {{/* use the port specified in the service */}}
{{- $_ := set .Values.env "VIRTUAL_PORT" .Values.service.port.port -}} {{- $_ := set .Values.env "VIRTUAL_PORT" .Values.service.port.port -}}
{{/* if DB_HOST is not set use internal postgres chart */}} {{- if .Values.postgresql.enabled -}}
{{- if eq .Values.env.DB_HOST "" -}} {{/* if DB_HOST is not set use internal postgres chart */}}
{{- if eq .Values.env.DB_HOST "" -}}
{{- $_ := set .Values.env "DB_HOST" (printf "%s-postgresql" .Release.Name) -}} {{- $_ := set .Values.env "DB_HOST" (printf "%s-postgresql" .Release.Name) -}}
{{- end -}} {{- end -}}
{{/* if DB_USER is not set use internal postgres chart */}} {{/* if DB_USER is not set use internal postgres chart */}}
{{- if eq .Values.env.DB_USER "" -}} {{- if eq .Values.env.DB_USER "" -}}
{{- $_ := set .Values.env "DB_USER" .Values.postgresql.postgresqlUsername -}} {{- $_ := set .Values.env "DB_USER" .Values.postgresql.postgresqlUsername -}}
{{- end -}} {{- end -}}
{{/* if DB_PASS is not set use internal postgres chart */}} {{/* if DB_PASS is not set use internal postgres chart */}}
{{- if eq .Values.env.DB_PASS "" -}} {{- if eq .Values.env.DB_PASS "" -}}
{{- $_ := set .Values.env "DB_PASS" .Values.postgresql.postgresqlPassword -}} {{- $_ := set .Values.env "DB_PASS" .Values.postgresql.postgresqlPassword -}}
{{- end -}} {{- end -}}
{{/* if DB_DATABASE is not set use internal postgres chart */}} {{/* if DB_DATABASE is not set use internal postgres chart */}}
{{- if eq .Values.env.DB_DATABASE "" -}} {{- if eq .Values.env.DB_DATABASE "" -}}
{{- $_ := set .Values.env "DB_DATABASE" .Values.postgresql.postgresqlDatabase -}} {{- $_ := set .Values.env "DB_DATABASE" .Values.postgresql.postgresqlDatabase -}}
{{- end -}}
{{- end -}} {{- end -}}
{{/* Render the templates */}} {{/* Render the templates */}}

View File

@ -38,17 +38,16 @@ env:
# -- Postgres database password # -- Postgres database password
# @default -- postgresql.postgresqlDatabase value # @default -- postgresql.postgresqlDatabase value
DB_DATABASE: "" DB_DATABASE: ""
# -- dashboard admin user (needed to edit)
ADMIN_USER: admin
# -- dashboard admin password (needed to edit)
ADMIN_PASSWORD: admin
# -- dashboard admin email
ADMIN_EMAIL: info@example.com
# -- Use CDN for static context from third-parties # -- Use CDN for static context from third-parties
USE_CDN: false USE_CDN: false
# -- Disable logs from appearing and writing to disk # -- Disable logs from appearing and writing to disk
DISABLE_LOGS: false DISABLE_LOGS: false
# -- dashboard admin user (needed to edit)
# ADMIN_USER: admin
# -- dashboard admin password (needed to edit)
# ADMIN_PASSWORD: admin
# -- dashboard admin email
# ADMIN_EMAIL: info@example.com
service: service:
port: port: