File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
charts/factorio-server-charts/templates/tests Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,19 @@ spec:
1212 image : outdead/rcon
1313 command :
1414 - /bin/sh
15- - -ec
15+ - -xec
1616 - |
17+ until nc -z {{ include "factorio-server-charts.fullname" . }}-rcon {{ .Values.rcon.port }}; do
18+ echo "Waiting for main service to be ready..." >&2
19+ sleep 5
20+ done
21+ echo "Main service is ready, proceeding with connection test."
1722 RCONPW="$(cat /rconpw/rconpw)"
18- ./rcon -a {{ include "factorio-server-charts.fullname" . }}-rcon:{{ .Values.rcon.port }} -p $RCONPW -t rcon -T 180s /s Test
23+ if ./rcon -a {{ include "factorio-server-charts.fullname" . }}-rcon:{{ .Values.rcon.port }} -p $RCONPW -t rcon -T 180s /s Test; then
24+ echo "RCON test command completed successfully."
25+ else
26+ echo "RCON test failed." >&2
27+ fi
1928 volumeMounts :
2029 - mountPath : /rconpw
2130 name : rconpw
You can’t perform that action at this time.
0 commit comments