Publish new changes in catalog

This commit is contained in:
sonicaj
2024-01-25 10:53:44 +00:00
parent 59ac662b02
commit 58ffd9faf3
16 changed files with 12 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ description: Palworld is a multiplayer, open-world survival crafting game where
annotations:
title: Palworld
type: application
version: 1.0.0
version: 1.0.1
apiVersion: v2
appVersion: palworld
kubeVersion: '>=1.16.0-0'

View File

@@ -13,7 +13,7 @@ palworldConfig:
gameParams:
- EpicApp=PalServer
gameParamsExtra:
- -No-useperfthreads
- -useperfthreads
- -NoAsyncLoadingThread
- -UseMultithreadForDS
updatePublicIP: false

View File

@@ -15,6 +15,8 @@ capabilities:
description: Palworld is able to set the setuid attribute on a file.
- name: SETGID
description: Palworld is able to set the setgid attribute on a file.
- name: SYS_RESOURCE
description: Palworld is able to override resource limits.
- name: KILL
description: Palworld is able to send signals to processes owned by others.
hostMounts: []

View File

@@ -47,7 +47,7 @@ questions:
schema:
type: list
default:
- -No-useperfthreads
- -useperfthreads
- -NoAsyncLoadingThread
- -UseMultithreadForDS
items:

View File

@@ -25,13 +25,14 @@ workload:
- FOWNER
- SETGID
- SETUID
- SYS_RESOURCE
- KILL
env:
STEAMCMD_DIR: /serverdata/steamcmd
{{- $srvDir := "/serverdata/serverfiles" }}
SERVER_DIR: {{ $srvDir }}
SRV_ADMIN_PWD: {{ .Values.palworldConfig.adminPassword }}
GAME_PARAMS: {{ join " " .Values.palworldNetwork.serverPort }}
GAME_PARAMS: {{ join " " .Values.palworldConfig.gameParams }}
GAME_PARAMS_EXTRA: {{ join " " .Values.palworldConfig.gameParamsExtra }}
UPDATE_PUBLIC_IP: {{ .Values.palworldConfig.updatePublicIP }}
VALIDATE: {{ .Values.palworldConfig.validate }}

View File

@@ -1,7 +1,10 @@
{{- define "palworld.validation" -}}
{{- define "palworld.set.params" -}}
{{- range $param := .Values.palworldConfig.gameParams -}}
{{- if hasPrefix "port=" $param -}}
{{- fail "PalWorld - [port=] param is automatically adjusted from the Server Port field" -}}
{{- end -}}
{{- end -}}
{{- $params := (prepend .Values.palworldConfig.gameParams (printf "port=%v" .Values.palworldNetwork.serverPort)) -}}
{{- $_ := set .Values.palworldConfig "gameParams" $params -}}
{{- end -}}

View File

@@ -1,6 +1,6 @@
{{- include "ix.v1.common.loader.init" . -}}
{{- include "palworld.validation" $ -}}
{{- include "palworld.set.params" $ -}}
{{/* Merge the templates with Values */}}
{{- $_ := mustMergeOverwrite .Values (include "palworld.workload" $ | fromYaml) -}}