File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed
charts/factorio-server-charts Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
## Changelog
2
2
3
+ ### V2.0.3
4
+
5
+ #### Non-Breaking Changes
6
+
7
+ - Updated Chart test to wait for the service to become available before testing rcon port
8
+
3
9
### V2.0.2
4
10
5
11
#### Non-Breaking Changes
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ sources:
20
20
# This is the chart version. This version number should be incremented each time you make changes
21
21
# to the chart and its templates, including the app version.
22
22
# Versions are expected to follow Semantic Versioning (https://semver.org/)
23
- version : 2.0.2
23
+ version : 2.0.3
24
24
25
25
# This is the version number of the application being deployed. This version number should be
26
26
# incremented each time you make changes to the application. Versions are not expected to
Original file line number Diff line number Diff line change @@ -12,10 +12,19 @@ spec:
12
12
image : outdead/rcon
13
13
command :
14
14
- /bin/sh
15
- - -ec
15
+ - -xec
16
16
- |
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."
17
22
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
19
28
volumeMounts :
20
29
- mountPath : /rconpw
21
30
name : rconpw
You can’t perform that action at this time.
0 commit comments