File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
charts/nr-k8s-otel-collector Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11{ {/* Build the list of port for the DaemonSet pods */} }
22{ {- define " nrKubernetesOtel.daemonset.ports" -} }
3+ { {- if get .Values.daemonset " ports" | kindIs " map" -} }
34{ {- $ports := deepCopy .Values.daemonset.ports -} }
45{ {- range $key , $port := $ports } }
56{ {- if $port .enabled } }
67- name: { { $key } }
78 containerPort: { { $port .containerPort } }
89 protocol: { { $port .protocol } }
9- { {- end} }
10- { {- end } }
11- { {- end } }
10+ { {- end -} }
11+ { {- end -} }
12+ { {- end -} }
13+ { {- end -} }
1214
1315{ {/* Build the list of port for the Deployment pod */} }
1416{ {- define " nrKubernetesOtel.deployment.ports" -} }
17+ { {- if get .Values.deployment " ports" | kindIs " map" -} }
1518{ {- $ports := deepCopy .Values.deployment.ports -} }
1619{ {- range $key , $port := $ports } }
1720{ {- if $port .enabled } }
1821- name: { { $key } }
1922 containerPort: { { $port .containerPort } }
2023 protocol: { { $port .protocol } }
21- { {- end} }
22- { {- end } }
23- { {- end } }
24+ { {- end -} }
25+ { {- end -} }
26+ { {- end -} }
27+ { {- end -} }
Original file line number Diff line number Diff line change @@ -153,7 +153,6 @@ deployment:
153153 metrics :
154154 enabled : true
155155 containerPort : 8888
156- servicePort : 8888
157156 protocol : TCP
158157 http :
159158 enabled : true
You can’t perform that action at this time.
0 commit comments