Skip to content

Commit

Permalink
Merge pull request #6 from unpoller/chart_fixes
Browse files Browse the repository at this point in the history
fix(chart): Default grafana user in k8s + secret names
  • Loading branch information
jlpedrosa authored May 9, 2024
2 parents c59480e + 01e0085 commit 97b4557
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 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
11 changes: 6 additions & 5 deletions charts/unpoller/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# unpoller

![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)
![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)

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

See further documentation in how to install unpoller in Kubernetes in http://unpoller.github.io/helm-chart (will be updated)
See further documentation in how to install unpoller in Kubernetes in http://unpoller.github.io/helm-chart

**Note**: *This is a best effort to keep this chart working for kubernetes.*

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

## Source Code

* <https://github.com/unpoller/unpoller>
* <https://github.com/unpoller/helm-chart>

## Values

Expand All @@ -28,7 +29,7 @@ See further documentation in how to install unpoller in Kubernetes in http://unp
| dashboards.grafana.create | bool | `true` | |
| dashboards.grafana.secret.existingSecretName | string | `""` | |
| dashboards.grafana.secret.password | string | `"prom-operator"` | |
| dashboards.grafana.secret.username | string | `"prom"` | |
| dashboards.grafana.secret.username | string | `"admin"` | |
| dashboards.grafana.selectorLabels | object | `{}` | |
| dashboards.grafana.url | string | `""` | |
| fullnameOverride | string | `""` | |
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 97b4557

Please sign in to comment.