Skip to content

Commit

Permalink
Fix environment variables and wrong reference to CLUSTER_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivaka committed Sep 24, 2024
1 parent 24b7181 commit 3b619ea
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 3b619ea

Please sign in to comment.