From 0b4fc3190d74d45e95a50004b877233afbc73ff9 Mon Sep 17 00:00:00 2001 From: Nicole Date: Wed, 31 Jan 2024 10:48:25 -0700 Subject: [PATCH] added with statement for port protocol Signed-off-by: Nicole --- charts/prometheus-node-exporter/templates/daemonset.yaml | 4 +++- charts/prometheus-node-exporter/values.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/prometheus-node-exporter/templates/daemonset.yaml b/charts/prometheus-node-exporter/templates/daemonset.yaml index 58f9c17d8458..e6dca93de167 100644 --- a/charts/prometheus-node-exporter/templates/daemonset.yaml +++ b/charts/prometheus-node-exporter/templates/daemonset.yaml @@ -211,7 +211,9 @@ spec: {{- if .Values.kubeRBACProxy.enableHostPort }} hostPort: {{ .Values.service.port }} {{- end }} - protocol: {{ .Values.kubeRBACProxy.portProtocol }} + {{- with .Values.kubeRBACProxy.portProtocol }} + protocol: {{ . }} + {{- end }} - containerPort: 8888 name: "http-healthz" readinessProbe: diff --git a/charts/prometheus-node-exporter/values.yaml b/charts/prometheus-node-exporter/values.yaml index 73be9f132ff8..634d4271ef53 100644 --- a/charts/prometheus-node-exporter/values.yaml +++ b/charts/prometheus-node-exporter/values.yaml @@ -66,7 +66,7 @@ kubeRBACProxy: # Configure a hostPort. If true, hostPort will be enabled in the container and set to service.port. enableHostPort: false # Configure the protocol for the container port - portProtocol: TCP + portProtocol: null resources: {} # We usually recommend not to specify default resources and to leave this as a conscious