Skip to content

Commit 52ef8d5

Browse files
committed
fix: port name cannot be over 15 chars
1 parent 081cb45 commit 52ef8d5

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

charts/issue-bot/templates/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,20 @@ spec:
6161
- name: ISSUE_BOT__DATABASE__CONNECTION_STRING
6262
value: "{{ .Values.issueBot.databaseConnectionString }}"
6363
ports:
64-
- name: issue-bot-http
64+
- name: ib-api
6565
containerPort: {{ .Values.issueBot.containerPort }}
6666
protocol: TCP
67-
- name: issue-bot-metric
67+
- name: ib-metric
6868
containerPort: {{ .Values.issueBot.metricsPort }}
6969
protocol: TCP
7070
livenessProbe:
7171
httpGet:
7272
path: /health
73-
port: issue-bot-http
73+
port: ib-api
7474
readinessProbe:
7575
httpGet:
7676
path: /health
77-
port: issue-bot-http
77+
port: ib-api
7878
resources: {{- toYaml .Values.issueBot.resources | nindent 10 }}
7979
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
8080
affinity: {{ toYaml .Values.affinity | nindent 8 }}

charts/issue-bot/templates/ingress.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
name: {{ include "issueBot.fullname" . }}
1010
namespace: {{ .Release.Namespace }}
1111
spec:
12+
ingressClassName: {{ .Values.issueBot.ingress.className }}
1213
rules:
1314
{{- $name := (include "issueBot.fullname" .) -}}
1415
{{- $domains := (include "lor_e.ingress.hostname" .) -}}
@@ -20,7 +21,7 @@ spec:
2021
service:
2122
name: {{ $name }}
2223
port:
23-
name: issue-bot-http
24+
name: ib-api
2425
path: {{ $.Values.issueBot.pathPrefix }}
2526
pathType: Prefix
2627
{{- end }}

charts/issue-bot/templates/service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ metadata:
1010
spec:
1111
type: {{ $serviceType }}
1212
ports:
13-
- port: {{ .Values.issueBot.service.port }}
13+
- port: {{ .Values.issueBot.service.ports.api }}
1414
targetPort: {{ .Values.issueBot.containerPort }}
1515
protocol: TCP
1616
{{- if eq "NodePort" $serviceType }}
1717
nodePort: {{ .Values.issueBot.service.ports.api }}
1818
{{- end }}
19-
name: issue-bot-http
20-
- port: {{ .Values.issueBot.service.metricsPort }}
19+
name: ib-api
20+
- port: {{ .Values.issueBot.service.ports.metrics }}
2121
targetPort: {{ .Values.issueBot.metricsPort }}
2222
protocol: TCP
2323
{{- if eq "NodePort" $serviceType }}
2424
nodePort: {{ .Values.issueBot.service.ports.metrics }}
2525
{{- end }}
26-
name: issue-bot-metric
26+
name: ib-metric
2727
selector: {{- include "lor_e.issueBotSelectorLabels" . | nindent 4 }}

charts/issue-bot/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ issueBot:
1818
pathPrefix: /
1919
ingress:
2020
annotations: {}
21+
className: ""
2122
domain: ""
2223
containerPort: 4242
2324
metricsPort: 4243

0 commit comments

Comments
 (0)