8000 🐛 Merge the duplicate dashboard block in the chart values by abahmed · Pull Request #604 · abahmed/kwatch · GitHub
[go: up one dir, main page]

Skip to content
8000
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions deploy/chart/test_helm.sh
8000
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ set -euo pipefail
# Helm chart template tests
cd "$(dirname "$0")"

echo "=== values.yaml has no duplicate top-level keys ==="
DUP=$(grep -E '^[A-Za-z_][A-Za-z0-9_-]*:' values.yaml | cut -d: -f1 | sort | uniq -d)
[ -z "$DUP" ] || {
echo "FAIL: duplicate top-level keys in values.yaml: $DUP"; exit 1;
}

echo "=== default template ==="
OUT1=$(helm template test1 . 2>&1)

Expand Down
44 changes: 0 additions & 44 deletions deploy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,50 +322,6 @@ dashboard:
# empty and kwatch writes a generated password and token into it once.
# An edit to the Secret takes effect when kwatch restarts.
existingSecret: ""
# -- The license key itself (discouraged). When set and existingSecret is
# empty, the chart creates the Secret <release>-license.
key: ""
# -- The chart renders the license instance Secret and its Role only when
# a key is configured here (key or existingSecret). Set true when the key
# reaches kwatch another way, for example in the configSecretName Secret
# or an extra environment variable, so the license can activate.
instanceSecret: false

# -- Read-only dashboard: web UI and API. Pro only, off by default. Runs
# on its own listener and ClusterIP Service. The <release>-dashboard
# Secret holds the sign-in password (key password) and the API bearer
# token (key token). The chart ships that Secret empty and kwatch fills
# both keys itself the first time it starts, so they are the same under
# any renderer (helm template, Argo CD, Flux, CI) and across upgrades.
dashboard:
# -- Enable the dashboard listener and Service.
enabled: false
# -- Port for the dashboard listener (must not equal healthCheck.port).
port: 8061
# -- CIDRs or addresses of the proxies that terminate TLS in front of
# kwatch (your Ingress controller, Gateway, Route or load balancer),
# for example ["10.0.0.0/8"]. X-Forwarded-For and X-Forwarded-Proto
# are believed only from these peers; the client is the first hop from
# the right that is not itself listed. Any entry makes the dashboard
# https only: sign-in over plain http is refused and the cookie is
# Secure. Without it (and without tls.secretName) the dashboard is
# local, reached through kubectl port-forward over http, and every
# client behind a proxy shares one sign-in failure limit. The chart
# never exposes the dashboard: run the kwatch.sh Dashboard menu, or
# point your own Ingress, route or Service at the ClusterIP Service
# <release>-dashboard.
trustedProxies: []
# -- kwatch serves https itself from this kubernetes.io/tls Secret
# (keys tls.crt, tls.key), for a LoadBalancer or NodePort with nothing
# in front. Renewals are picked up without a restart.
tls:
secretName: ""
# -- Name of an existing Secret with the keys `password` and `token`.
# When empty and enabled is true, the chart creates the Secret and keeps
# it across upgrades with Helm lookup. Argo CD, Flux and other offline
# renders cannot look it up and would make a new password on every
# sync: create the Secret yourself and name it here.
existingSecret: ""
# -- With networkPolicy.enabled: extra NetworkPolicy peers (your
# ingress controller, ipBlocks for load balancer clients) allowed to
# reach the dashboard port. The release namespace and
Expand Down
Loading
0