Skip to content

Commit a63afa3

Browse files
authored
BUG: kubernetes-ingress: limit template spec name to 15 characters (#247)
Remove "-tcp" suffix according to RFC6335. Signed-off-by: bmailhe <[email protected]>
1 parent 30ba3f1 commit a63afa3

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

kubernetes-ingress/templates/NOTES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Service ports mapped are:
2929
protocol: UDP
3030
{{- end }}
3131
{{- range .Values.controller.service.tcpPorts }}
32-
- name: {{ .name }}-tcp
32+
- name: {{ .name | trunc 15 | trimSuffix "-" }}
3333
containerPort: {{ .targetPort }}
3434
protocol: TCP
3535
{{- end }}
@@ -61,7 +61,7 @@ Service ports mapped are:
6161
{{- end }}
6262
{{- end }}
6363
{{- range .Values.controller.service.tcpPorts }}
64-
- name: {{ .name }}-tcp
64+
- name: {{ .name | trunc 15 | trimSuffix "-" }}
6565
containerPort: {{ .port }}
6666
protocol: TCP
6767
{{- if $useHostPort }}

kubernetes-ingress/templates/controller-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ spec:
168168
{{- end }}
169169
{{- end }}
170170
{{- range .Values.controller.service.tcpPorts }}
171-
- name: {{ .name }}-tcp
171+
- name: {{ .name | trunc 15 | trimSuffix "-" }}
172172
containerPort: {{ .port }}
173173
protocol: TCP
174174
{{- if $useHostPort }}

kubernetes-ingress/templates/controller-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ spec:
167167
protocol: UDP
168168
{{- end }}
169169
{{- range .Values.controller.service.tcpPorts }}
170-
- name: {{ .name }}-tcp
170+
- name: {{ .name | trunc 15 | trimSuffix "-" }}
171171
containerPort: {{ .targetPort }}
172172
protocol: TCP
173173
{{- end }}

kubernetes-ingress/templates/controller-proxy-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ spec:
162162
protocol: UDP
163163
{{- end }}
164164
{{- range .Values.controller.service.tcpPorts }}
165-
- name: {{ .name }}-tcp
165+
- name: {{ .name | trunc 15 | trimSuffix "-" }}
166166
containerPort: {{ .targetPort }}
167167
protocol: TCP
168168
{{- end }}

kubernetes-ingress/templates/controller-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ spec:
9898
{{- end }}
9999
{{- end }}
100100
{{- range .Values.controller.service.tcpPorts }}
101-
- name: {{ .name }}-tcp
101+
- name: {{ .name | trunc 15 | trimSuffix "-" }}
102102
port: {{ .port }}
103103
protocol: TCP
104104
targetPort: {{ .targetPort }}

0 commit comments

Comments
 (0)