Skip to content

Commit

Permalink
Merge pull request #36 from castai/fix/cluster-id-in-helm-chart
Browse files Browse the repository at this point in the history
Fix wront cluster_id in helm chart
  • Loading branch information
Ivaka authored Sep 24, 2024
2 parents 24b7181 + 3b619ea commit c160e5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions charts/gpu-metrics-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@ spec:
envFrom:
- configMapRef:
name: {{- include "gpu-metrics-exporter.config-map" . | indent 1}}
{{- if .Values.dcgmExporter.enabled }}
env:
- name: "DCGM_HOST"
value: "localhost"
- name: "NODE_NAME"
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: "API_KEY"
valueFrom:
secretKeyRef:
name: {{ include "gpu-metrics-exporter.fullname" . }}
key: API_KEY
secretKeyRef:
name: {{ include "gpu-metrics-exporter.fullname" . }}
key: API_KEY
{{- if .Values.dcgmExporter.enabled }}
- name: "DCGM_HOST"
value: "localhost"
{{- end }}
resources:
{{- toYaml .Values.gpuMetricsExporter.resources | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ metadata:
name: {{- include "gpu-metrics-exporter.config-map" . | indent 1}}
data:
{{- with .Values.gpuMetricsExporter.config }}
CLUSTER_ID: "{{ .Values.castai.clusterId | default .CLUSTER_ID }}"
CLUSTER_ID: "{{ $.Values.castai.clusterId | default .CLUSTER_ID }}"
{{- toYaml (omit . "CLUSTER_ID") | nindent 2 }}
{{- end }}

0 comments on commit c160e5f

Please sign in to comment.