Skip to content

Commit 025b474

Browse files
authored
Fix(multiplayer): Make retoolService selector consistent between Service and Deployment (#235)
When fullnameOverride is set, the Service and Deployment selectors for multiplayer-ws become inconsistent, causing the Service to not properly target the Deployment pods. This change ensures both use the same template "retool.multiplayer.name", making them consistent regardless of configuration values.
1 parent 13064d4 commit 025b474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

charts/retool/templates/deployment_multiplayer_ws.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
replicas: {{ .Values.multiplayer.replicaCount }}
5050
selector:
5151
matchLabels:
52-
retoolService: {{ include "retool.name" . }}-multiplayer-ws
52+
retoolService: {{ template "retool.multiplayer.name" . }}
5353
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
5454
template:
5555
metadata:
@@ -61,7 +61,7 @@ spec:
6161
{{ toYaml .Values.multiplayer.annotations | indent 8 }}
6262
{{- end }}
6363
labels:
64-
retoolService: {{ include "retool.name" . }}-multiplayer-ws
64+
retoolService: {{ template "retool.multiplayer.name" . }}
6565
{{- if .Values.podLabels }}
6666
{{ toYaml .Values.podLabels | indent 8 }}
6767
{{- end }}

0 commit comments

Comments
 (0)