Skip to content

Commit

Permalink
Update values
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Dec 14, 2023
1 parent 988b2fc commit 1e232d2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 19 deletions.
31 changes: 20 additions & 11 deletions charts/kubedb-grafana-dashboards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,26 @@ The command removes all the Kubernetes components associated with the chart and

The following table lists the configurable parameters of the `kubedb-grafana-dashboards` chart and their default values.

| Parameter | Description | Default |
|---------------------------------|--------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| nameOverride | Overrides name template | <code>""</code> |
| fullnameOverride | Overrides fullname template | <code>""</code> |
| resources | List of resources for which dashboards will be applied | <code>["elasticsearch","mariadb","mongodb","mysql","postgres","redis","proxysql"]</code> |
| dashboard.folderID | ID of Grafana folder where these dashboards will be applied | <code>0</code> |
| dashboard.overwrite | If true, dashboard with matching uid will be overwritten | <code>true</code> |
| dashboard.templatize.title | If true, datasource will be prefixed to dashboard name | <code>false</code> |
| dashboard.templatize.datasource | If true, datasource will be hardcoded in the dashboard | <code>false</code> |
| grafana.name | Name of Grafana Appbinding where these dashboards are applied | <code>""</code> |
| grafana.namespace | Namespace of Grafana Appbinding where these dashboards are applied | <code>""</code> |
| Parameter | Description | Default |
|---------------------------------------------------|--------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| nameOverride | Overrides name template | <code>""</code> |
| fullnameOverride | Overrides fullname template | <code>""</code> |
| resources | List of resources for which dashboards will be applied | <code>["elasticsearch","mariadb","mongodb","mysql","postgres","redis","proxysql"]</code> |
| dashboard.folderID | ID of Grafana folder where these dashboards will be applied | <code>0</code> |
| dashboard.overwrite | If true, dashboard with matching uid will be overwritten | <code>true</code> |
| dashboard.templatize.title | If true, datasource will be prefixed to dashboard name | <code>false</code> |
| dashboard.templatize.datasource | If true, datasource will be hardcoded in the dashboard | <code>false</code> |
| dashboard.replacements.job=\"kube-state-metrics\" | | <code>job=\"kubernetes-service-endpoints\"</code> |
| dashboard.replacements.job=\"kubelet\" | | <code>job=\"kubernetes-nodes-cadvisor\"</code> |
| dashboard.replacements.job=\"repl-stats\" | | <code>job=\"kubedb-databases\"</code> |
| grafana.name | Name of Grafana Appbinding where these dashboards are applied | <code>""</code> |
| grafana.namespace | Namespace of Grafana Appbinding where these dashboards are applied | <code>""</code> |
| grafana.version | | <code>8.2.3</code> |
| grafana.jobName | | <code>kubedb-databases</code> |
| grafana.url | | <code>""</code> |
| grafana.apikey | | <code>""</code> |
| app.name | | <code>""</code> |
| app.namespace | | <code>""</code> |


Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:
Expand Down
4 changes: 4 additions & 0 deletions charts/kubedb-grafana-dashboards/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{ $shared := and (eq .Values.app.name "") (eq .Values.app.namespace "") }}
{{ if not $shared }}

{{- if not (eq (len .Values.resources) 1) }}
{{- fail "Only one .Values.resources can be used when app name or namespace is set!" }}
{{- end }}

apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
16 changes: 8 additions & 8 deletions charts/kubedb-grafana-dashboards/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ fullnameOverride: ""

# List of resources for which dashboards will be applied
resources: # +doc-gen:break
# - elasticsearch
# - mariadb
# - mongodb
# - mysql
- elasticsearch
- mariadb
- mongodb
- mysql
- postgres
# - redis
# - proxysql
- redis
- proxysql

dashboard:
# ID of Grafana folder where these dashboards will be applied
Expand Down Expand Up @@ -43,5 +43,5 @@ grafana:
apikey: ""

app:
name: "mymg"
namespace: "demo"
name: ""
namespace: ""

0 comments on commit 1e232d2

Please sign in to comment.