From 388190be38d67bd4d8bdc717e1ad1d151ddeab1e Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Wed, 4 Oct 2023 11:34:52 +0200 Subject: [PATCH 1/2] Helm - service to be only deployed when needed Signed-off-by: Carlos Eduardo Arango Gutierrez --- 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..f33dec2121 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}} From 3fbe8b34e8c641a58dce7bc2ff7474c0c89a7ef8 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Wed, 4 Oct 2023 12:02:03 +0200 Subject: [PATCH 2/2] Update deployment/helm/node-feature-discovery/templates/service.yaml Co-authored-by: Markus Lehtonen --- deployment/helm/node-feature-discovery/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/helm/node-feature-discovery/templates/service.yaml b/deployment/helm/node-feature-discovery/templates/service.yaml index f33dec2121..0ed9ed7db6 100644 --- a/deployment/helm/node-feature-discovery/templates/service.yaml +++ b/deployment/helm/node-feature-discovery/templates/service.yaml @@ -1,4 +1,4 @@ - {{- if not .Values.enableNodeFeatureApi }} +{{- if not .Values.enableNodeFeatureApi }} apiVersion: v1 kind: Service metadata: