From 8adb4b38da1fa5abe066ba7cc68ada6ad37d56e4 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 25 Jan 2024 16:15:58 +0200 Subject: [PATCH] deployment/helm: don't deploy topology-updater conf unnecessarily Only deploy the topology-updater config if topology-updater itself (the daemon) is deployed. --- .../templates/nfd-topologyupdater-conf.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/helm/node-feature-discovery/templates/nfd-topologyupdater-conf.yaml b/deployment/helm/node-feature-discovery/templates/nfd-topologyupdater-conf.yaml index 9867f5089c..8d03aa2d83 100644 --- a/deployment/helm/node-feature-discovery/templates/nfd-topologyupdater-conf.yaml +++ b/deployment/helm/node-feature-discovery/templates/nfd-topologyupdater-conf.yaml @@ -1,3 +1,4 @@ +{{- if .Values.topologyUpdater.enable -}} apiVersion: v1 kind: ConfigMap metadata: @@ -8,3 +9,4 @@ metadata: data: nfd-topology-updater.conf: |- {{- .Values.topologyUpdater.config | toYaml | nindent 4 }} +{{- end }}