Skip to content

Commit 183dd49

Browse files
Allow upgrades
1 parent 1e4b32e commit 183dd49

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed
Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
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 -}}

charts/nr-k8s-otel-collector/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)