From 6e5c130e3a7fb8969228b039a42e36f72e0e5d3e Mon Sep 17 00:00:00 2001 From: kory33 Date: Fri, 22 Sep 2023 03:43:23 +0900 Subject: [PATCH] feat: make debug-bungeecord's config templated --- .../bungeecord/bungeecord-config-patch.yaml | 149 +++++++++--------- 1 file changed, 75 insertions(+), 74 deletions(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeecord-config-patch.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeecord-config-patch.yaml index f879e3e18..2b4a11787 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeecord-config-patch.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-gateway/bungeecord/bungeecord-config-patch.yaml @@ -1,86 +1,87 @@ -apiVersion: v1 -kind: ConfigMap +apiVersion: seichi.click/v1alpha1 +kind: BungeeConfigMapTemplate metadata: name: bungeecord-config -data: - config.yml: | - servers: - deb-s1: - address: 192.168.2.122:25561 - restricted: false - motd: '' - deb-s2: - address: 192.168.2.122:25562 - restricted: false - motd: '' +spec: + dataGoTemplate: + config.yml: | + servers: + deb-s1: + address: 192.168.2.122:25561 + restricted: false + motd: '' + deb-s2: + address: 192.168.2.122:25562 + restricted: false + motd: '' - test-one-day-to-reset: - address: mcserver--one-day-to-reset.seichi-debug-minecraft:25565 - restricted: false - motd: '' + test-one-day-to-reset: + address: mcserver--one-day-to-reset.seichi-debug-minecraft:25565 + restricted: false + motd: '' - listeners: - - priorities: - - deb-s1 - forced_hosts: - play-debug.seichi.click: deb-s1 + listeners: + - priorities: + - deb-s1 + forced_hosts: + play-debug.seichi.click: deb-s1 - query_port: 25565 - motd: '' - bind_local_address: true - tab_list: GLOBAL_PING - query_enabled: false - host: 0.0.0.0:25577 + query_port: 25565 + motd: '' + bind_local_address: true + tab_list: GLOBAL_PING + query_enabled: false + host: 0.0.0.0:25577 - max_players: 256 - tab_size: 60 - ping_passthrough: false - force_default_server: true - proxy_protocol: true + max_players: 256 + tab_size: 60 + ping_passthrough: false + force_default_server: true + proxy_protocol: true - # Warning: asterisk cannot be used for permissions setting - permissions: - default: - - bungeecord.command.list - - bungeecord.command.server - - bungeehubcommand.hub - admin: - - bungeecord.command.list - - bungeecord.command.server - - bungeehubcommand.hub + # Warning: asterisk cannot be used for permissions setting + permissions: + default: + - bungeecord.command.list + - bungeecord.command.server + - bungeehubcommand.hub + admin: + - bungeecord.command.list + - bungeecord.command.server + - bungeehubcommand.hub - - bungeecord.command.alert - - bungeecord.command.send - - redisbungee.command.lastseen - - redisbungee.command.sendtoall - - redisbungee.command.serverid - - redisbungee.command.serverids - - redisbungee.command.pproxy - - redisbungee.command.plist + - bungeecord.command.alert + - bungeecord.command.send + - redisbungee.command.lastseen + - redisbungee.command.sendtoall + - redisbungee.command.serverid + - redisbungee.command.serverids + - redisbungee.command.pproxy + - redisbungee.command.plist - groups: - unchama: - - admin + groups: + unchama: + - admin - custom_server_name: HexaCord - player_limit: -1 - online_mode: true - forge_support: false - stats: 752477ce-c5e9-4e37-9361-2d4f26f65f14 + custom_server_name: HexaCord + player_limit: -1 + online_mode: true + forge_support: false + stats: 752477ce-c5e9-4e37-9361-2d4f26f65f14 - ip_forward: true - prevent_proxy_connections: true - always_handle_packets: false - remote_ping_timeout: 5000 - remote_ping_cache: -1 - # The timeout value must be set shorter than the upper network - timeout: 20000 - server_connect_timeout: 5000 - connection_throttle: 2000 - connection_throttle_limit: 16 - network_compression_threshold: 256 - log_pings: false + ip_forward: true + prevent_proxy_connections: true + always_handle_packets: false + remote_ping_timeout: 5000 + remote_ping_cache: -1 + # The timeout value must be set shorter than the upper network + timeout: 20000 + server_connect_timeout: 5000 + connection_throttle: 2000 + connection_throttle_limit: 16 + network_compression_threshold: 256 + log_pings: false - disabled_commands: - log_commands: true - inject_commands: false + disabled_commands: + log_commands: true + inject_commands: false