Skip to content

Commit

Permalink
added with statement for port protocol
Browse files Browse the repository at this point in the history
Signed-off-by: Nicole <[email protected]>
  • Loading branch information
nfrazier08 committed Feb 11, 2024
1 parent f3eccca commit 0b4fc31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion charts/prometheus-node-exporter/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b4fc31

Please sign in to comment.