Skip to content

Commit

Permalink
fix(chart): Default grafana user in k8s + secret names
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpedrosaSnoo committed May 8, 2024
1 parent c59480e commit aac5226
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/on_unpoller_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:
- name: Update helm values
run: |
UNPOLLER_VERSION=${{ github.event.inputs.unpoller_version }}
CHART_VERSION="${UNPOLLER_VERSION:1}"
yq -i ".appVersion=\"${UNPOLLER_VERSION}\"" charts/unpoller/Chart.yaml
yq -i ".version=\"${CHART_VERSION}\"" charts/unpoller/Chart.yaml
yq -i ".version=\"${UNPOLLER_VERSION}\"" charts/unpoller/Chart.yaml
make helm-docs
cp charts/unpoller/README.md README.MD
Expand Down
4 changes: 2 additions & 2 deletions charts/unpoller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ description: |
**Note**: *This is a best effort to keep this chart working for kubernetes.*
type: application
version: "2.11.2-Chart4"
appVersion: "2.11.2"
version: "2.11.2-Chart5"
appVersion: "v2.11.2"
keywords:
- unifi
- unpoller
Expand Down
4 changes: 2 additions & 2 deletions charts/unpoller/templates/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ spec:
external:
url: http://monitoring-promstack-grafana #Grafana URL
adminPassword:
name: grafana-admin-credentials
name: {{ include "unpoller.grafana-secret" . }}
key: GF_SECURITY_ADMIN_PASSWORD
adminUser:
name: grafana-admin-credentials
name: {{ include "unpoller.grafana-secret" . }}
key: GF_SECURITY_ADMIN_USER
{{- end }}
2 changes: 1 addition & 1 deletion charts/unpoller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ dashboards:
existingSecretName: ""
# When existingSecretName is not provided, username and password must be provided. A new secret will be
# created with the provided username and password. GF_SECURITY_ADMIN_USER.
username: "prom"
username: "admin"
# Password for username, will create field GF_SECURITY_ADMIN_PASSWORD
password: "prom-operator"

Expand Down

0 comments on commit aac5226

Please sign in to comment.