Skip to content

Commit 210f18e

Browse files
committed
Consistency: Portpolicy static=>Static & dynamic=>Dynamic
This has been bothering me for a while. Finally fixed it.
1 parent e4ed84d commit 210f18e

20 files changed

Lines changed: 136 additions & 43 deletions

File tree

‎examples/cpp-simple/fleet.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ spec:
2424
spec:
2525
ports:
2626
- name: default
27-
portPolicy: "dynamic"
27+
portPolicy: Dynamic
2828
containerPort: 7654
2929
template:
3030
spec:

‎examples/cpp-simple/gameserver.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ metadata:
2121
spec:
2222
ports:
2323
- name: default
24-
portPolicy: "dynamic"
24+
portPolicy: Dynamic
2525
containerPort: 7654
2626
template:
2727
spec:

‎examples/fleet.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
spec:
5858
ports:
5959
- name: default
60-
portPolicy: "dynamic"
60+
portPolicy: Dynamic
6161
containerPort: 26000
6262
health:
6363
initialDelaySeconds: 30

‎examples/gameserver.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ spec:
3636
# name is a descriptive name for the port
3737
- name: default
3838
# portPolicy has two options:
39-
# - "dynamic" (default) the system allocates a free hostPort for the gameserver, for game clients to connect to
40-
# - "static", user defines the hostPort that the game client will connect to. Then onus is on the user to ensure that the
39+
# - "Dynamic" (default) the system allocates a free hostPort for the gameserver, for game clients to connect to
40+
# - "Static", user defines the hostPort that the game client will connect to. Then onus is on the user to ensure that the
4141
# port is available. When static is the policy specified, `hostPort` is required to be populated
42-
portPolicy: "static"
42+
portPolicy: Dynamic
4343
# the port that is being opened on the game server process
4444
containerPort: 7654
45-
# the port exposed on the host, only required when `portPolicy` is "static". Overwritten when portPolicy is "dynamic".
45+
# the port exposed on the host, only required when `portPolicy` is "Static". Overwritten when portPolicy is "Dynamic".
4646
hostPort: 7777
4747
# protocol being used. Defaults to UDP. TCP is the only other option
4848
protocol: UDP

‎examples/rust-simple/gameserver.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ metadata:
2121
spec:
2222
ports:
2323
- name: default
24-
portPolicy: "dynamic"
2524
containerPort: 7654
2625
template:
2726
spec:

‎examples/simple-udp/dev-gameserver.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ metadata:
2323
spec:
2424
ports:
2525
- name: default
26-
portPolicy: "static"
26+
portPolicy: Static
2727
hostPort: 17654
2828
containerPort: 17654
2929
# The following is ignored but required due to validation.

‎examples/simple-udp/gameserver.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ metadata:
1919
spec:
2020
ports:
2121
- name: default
22-
portPolicy: "dynamic"
22+
portPolicy: Dynamic
2323
containerPort: 7654
2424
template:
2525
spec:

‎examples/simple-udp/gameserverset.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
spec:
2626
ports:
2727
- name: default
28-
portPolicy: "dynamic"
28+
portPolicy: Dynamic
2929
containerPort: 7654
3030
template:
3131
spec:

‎examples/xonotic/fleet.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ spec:
2727
spec:
2828
ports:
2929
- name: default
30-
portPolicy: "dynamic"
3130
containerPort: 26000
3231
health:
3332
initialDelaySeconds: 30

‎examples/xonotic/gameserver.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ metadata:
1919
spec:
2020
ports:
2121
- name: default
22-
portPolicy: "dynamic"
2322
containerPort: 26000
2423
template:
2524
spec:

0 commit comments

Comments
 (0)