From dd8d7f6725def948950ae218216816d9dd2251f6 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Wed, 4 Oct 2023 16:00:43 +0200 Subject: [PATCH] Helm - service to be only deployed when needed (#1389) * Helm - service to be only deployed when needed Signed-off-by: Carlos Eduardo Arango Gutierrez * Update deployment/helm/node-feature-discovery/templates/service.yaml Co-authored-by: Markus Lehtonen --------- Signed-off-by: Carlos Eduardo Arango Gutierrez Co-authored-by: Markus Lehtonen --- deployment/helm/node-feature-discovery/templates/service.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deployment/helm/node-feature-discovery/templates/service.yaml b/deployment/helm/node-feature-discovery/templates/service.yaml index 0d4789818f..0ed9ed7db6 100644 --- a/deployment/helm/node-feature-discovery/templates/service.yaml +++ b/deployment/helm/node-feature-discovery/templates/service.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.enableNodeFeatureApi }} apiVersion: v1 kind: Service metadata: @@ -16,3 +17,4 @@ spec: selector: {{- include "node-feature-discovery.selectorLabels" . | nindent 4 }} role: master +{{- end}}