Skip to content

Commit 97b4557

Browse files
authored
Merge pull request #6 from unpoller/chart_fixes
fix(chart): Default grafana user in k8s + secret names
2 parents c59480e + 01e0085 commit 97b4557

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/on_unpoller_release.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ jobs:
3131
- name: Update helm values
3232
run: |
3333
UNPOLLER_VERSION=${{ github.event.inputs.unpoller_version }}
34-
CHART_VERSION="${UNPOLLER_VERSION:1}"
3534
yq -i ".appVersion=\"${UNPOLLER_VERSION}\"" charts/unpoller/Chart.yaml
36-
yq -i ".version=\"${CHART_VERSION}\"" charts/unpoller/Chart.yaml
35+
yq -i ".version=\"${UNPOLLER_VERSION}\"" charts/unpoller/Chart.yaml
3736
make helm-docs
3837
3938
cp charts/unpoller/README.md README.MD

charts/unpoller/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ description: |
1414
**Note**: *This is a best effort to keep this chart working for kubernetes.*
1515
1616
type: application
17-
version: "2.11.2-Chart4"
18-
appVersion: "2.11.2"
17+
version: "2.11.2-Chart5"
18+
appVersion: "v2.11.2"
1919
keywords:
2020
- unifi
2121
- unpoller

charts/unpoller/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# unpoller
22

3-
![Version: 2.11.2](https://img.shields.io/badge/Version-2.11.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.11.2](https://img.shields.io/badge/AppVersion-2.11.2-informational?style=flat-square)
3+
![Version: 2.11.2-Chart5](https://img.shields.io/badge/Version-2.11.2--Chart5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v2.11.2](https://img.shields.io/badge/AppVersion-v2.11.2-informational?style=flat-square)
44

55
A Helm chart for unpoller, a unifi prometheus exporter. This chart helps deploy Unpoller (unifi metrics exporter)
66
in kubernetes clusters.
@@ -9,15 +9,16 @@ It supports integration with Prometheus operator, so a PodMonitor is created tha
99
Optionally, it can deploy automatically the dashboards into a Grafana instance through the integration with GrafanaOperator:
1010
* Creates a Grafana CR with the credentials provided (or reuses existing Grafana object)
1111
* Creates a Dashboard instance for all the unpoller provided charts.
12-
See Readme.MD for details, and values.yaml for all the configuration options.
1312

14-
See further documentation in how to install unpoller in Kubernetes in http://unpoller.github.io/helm-chart (will be updated)
13+
See further documentation in how to install unpoller in Kubernetes in http://unpoller.github.io/helm-chart
14+
15+
**Note**: *This is a best effort to keep this chart working for kubernetes.*
1516

1617
**Homepage:** <https://unpoller.com/>
1718

1819
## Source Code
1920

20-
* <https://github.com/unpoller/unpoller>
21+
* <https://github.com/unpoller/helm-chart>
2122

2223
## Values
2324

@@ -28,7 +29,7 @@ See further documentation in how to install unpoller in Kubernetes in http://unp
2829
| dashboards.grafana.create | bool | `true` | |
2930
| dashboards.grafana.secret.existingSecretName | string | `""` | |
3031
| dashboards.grafana.secret.password | string | `"prom-operator"` | |
31-
| dashboards.grafana.secret.username | string | `"prom"` | |
32+
| dashboards.grafana.secret.username | string | `"admin"` | |
3233
| dashboards.grafana.selectorLabels | object | `{}` | |
3334
| dashboards.grafana.url | string | `""` | |
3435
| fullnameOverride | string | `""` | |

charts/unpoller/templates/grafana.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ spec:
99
external:
1010
url: http://monitoring-promstack-grafana #Grafana URL
1111
adminPassword:
12-
name: grafana-admin-credentials
12+
name: {{ include "unpoller.grafana-secret" . }}
1313
key: GF_SECURITY_ADMIN_PASSWORD
1414
adminUser:
15-
name: grafana-admin-credentials
15+
name: {{ include "unpoller.grafana-secret" . }}
1616
key: GF_SECURITY_ADMIN_USER
1717
{{- end }}

charts/unpoller/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ dashboards:
8686
existingSecretName: ""
8787
# When existingSecretName is not provided, username and password must be provided. A new secret will be
8888
# created with the provided username and password. GF_SECURITY_ADMIN_USER.
89-
username: "prom"
89+
username: "admin"
9090
# Password for username, will create field GF_SECURITY_ADMIN_PASSWORD
9191
password: "prom-operator"
9292

0 commit comments

Comments
 (0)