Files
truecharts/charts/stable/spaceengineers/values.yaml
T
Kjeld Schouten f8e33766bf feat(common): remove portal and ensure appUrl is used for notes.txt (#34047)
**Description**

This removes old portal references (from truenas times) from common and
notes.txt
Also ensures chartContext is used for notes.txt

Technically breaking in case any down-stream users use portal
configmap/data

⚒️ Fixes  #31880

**⚙️ Type of change**

- [x] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [x] 🔃 Refactor of current code
- [ ] 📜 Documentation Changes

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made changes to the documentation
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [ ] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or
`fix(docs):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: Kjeld Schouten <info@kjeldschouten.nl>
2025-04-07 22:04:57 +02:00

91 lines
2.9 KiB
YAML

image:
pullPolicy: IfNotPresent
repository: docker.io/devidian/spaceengineers
tag: latest@sha256:15bd1fff0d524dbfbb6cfd50c9d64deec57e778d9bf86598275f28427bfaa7a9
securityContext:
container:
runAsNonRoot: false
readOnlyRootFilesystem: false
runAsUser: 0
runAsGroup: 0
service:
main:
ports:
main:
protocol: udp
port: 27017
steam:
enabled: true
ports:
steam:
protocol: udp
enabled: true
port: 27018
api:
enabled: true
ports:
api:
protocol: http
enabled: true
port: 18080
spaceengineers:
instance_name: "TestInstance"
public_ip: "1.2.3.4"
workload:
main:
podSpec:
containers:
main:
lifecycle:
postStart:
type: exec
command:
- /bin/sh
- -c
- |
INSTANCE_NAME="{{ .Values.spaceengineers.instance_name }}"
CONFIG_PATH="{{ .Values.persistence.instances.mountPath }}/$INSTANCE_NAME/SpaceEngineers-Dedicated.cfg"
# Define the new values for the port-related options
ServerPort="{{ .Values.service.main.ports.main.port }}"
SteamPort="{{ .Values.service.steam.ports.steam.port }}"
RemoteApiPort="{{ .Values.service.api.ports.api.port }}"
# Check if the configuration file exists
if [ -f "$CONFIG_PATH" ]; then
# Update the XML file with the new values using sed
sed -i "s/<SteamPort>[0-9]*<\/SteamPort>/<SteamPort>$SteamPort<\/SteamPort>/" "$CONFIG_PATH"
sed -i "s/<ServerPort>[0-9]*<\/ServerPort>/<ServerPort>$ServerPort<\/ServerPort>/" "$CONFIG_PATH"
sed -i "s/<RemoteApiPort>[0-9]*<\/RemoteApiPort>/<RemoteApiPort>$RemoteApiPort<\/RemoteApiPort>/" "$CONFIG_PATH"
echo "Port-related options updated for instance $INSTANCE_NAME:"
echo "SteamPort: $SteamPort"
echo "ServerPort: $ServerPort"
echo "RemoteApiPort: $RemoteApiPort"
else
echo "Configuration file not found. Please create it manually or check the path: $CONFIG_PATH"
fi
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
env:
INSTANCE_NAME: "{{ .Values.spaceengineers.instance_name }}"
PUBLIC_IP: "{{ .Values.spaceengineers.public_ip }}"
persistence:
steamcmd:
enabled: true
mountPath: /root/.steam
plugins:
enabled: true
mountPath: /appdata/space-engineers/plugins
serverfiles:
enabled: true
mountPath: /appdata/space-engineers/SpaceEngineersDedicated
instances:
enabled: true
mountPath: /appdata/space-engineers/instances