Skip to content

Commit

Permalink
Updating value name for nodeExporter MacOS dashboard
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Kowalczyk <[email protected]>
  • Loading branch information
Piotr Kowalczyk authored and nicon89 committed May 16, 2023
1 parent 8f91606 commit 4634053
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def new_representer(dumper, data):
'node-rsrc-use': ' .Values.nodeExporter.enabled',
'node-cluster-rsrc-use': ' .Values.nodeExporter.enabled',
'nodes': ' .Values.nodeExporter.enabled',
'nodes-darwin': ' .Values.nodeExporter.enabled',
'nodes-darwin': ' .Values.nodeExporterMacOS.enabled',
'prometheus-remote-write': ' .Values.prometheus.prometheusSpec.remoteWriteDashboards'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Do not change in-place! In order to change this file first read following link:
https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack
*/ -}}
{{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }}
{{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled .Values.nodeExporter.enabled }}
{{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled .Values.nodeExporterMacOS.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -1070,4 +1070,4 @@ data:
"title": "Node Exporter / MacOS",
"version": 0
}
{{- end }}
{{- end }}

0 comments on commit 4634053

Please sign in to comment.