Validate Helm Charts / Detect changed charts (pull_request) Successful in 3s
Validate Helm Charts / Resource quantities (pull_request) Successful in 8s
Validate Helm Charts / Build ${{ fromJSON(needs.detect-changed-charts.outputs.charts) }} (pull_request) Successful in 3s
Validate Helm Charts / Install-test ${{ fromJSON(needs.detect-changed-charts.outputs.install-charts) }} (pull_request) Skipped
Validate Helm Charts / Trivy config ${{ fromJSON(needs.detect-changed-charts.outputs.scan-charts) }} (pull_request) Successful in 9s
--set dev=null aborted the render at .Values.dev.debug and --set server=null at .Values.server.replicas, while the third block, game, has fallen back to the chart defaults since 7.0.0. Half-safe is the worse state of the two: whoever sees game=null work assumes server=null does too. Both blocks now run through satisfactory.defaultedDict like game, via two new helpers next to it. server.resources is deliberately NOT re-defaulted there - it already runs through satisfactory.effectiveResources, which carries those defaults and is null-safe on its own, and a second copy of limitFactor: 2 / 4Gi / 1 / 5Gi would be a third place for them to drift. server is read in four files, not one, and the fourth is NOTES.txt, which helm template never renders - a fix confined to the manifests would have looked green and still aborted on a real helm install. All four go through the helpers. The single erased key was the quieter half of the bug and is fixed with it: a nulled server.gamePort rendered "port:" and "nodePort:" empty into the Service and an empty containerPort into the StatefulSet, and a nulled server.storage a PVC asking for no size - manifests rejected by nothing until the API server saw them. server.storage was documented in values.schema.json as deliberately not null-safe; that reasoning does not survive the block-level case, because it made "server: null" render a sizeless PVC instead of falling back like everything else. The schema note is replaced rather than left lying. Rendered output for valid values is unchanged: helm template against the chart defaults and against a full override set is byte-identical to 7.0.0, and so is NOTES.txt. Hence a patch bump, appVersion untouched. Fixes #16
147 lines
6.0 KiB
YAML
147 lines
6.0 KiB
YAML
# Scale the whole chart down without uninstalling it: scaleDown: true renders
|
|
# every Deployment/StatefulSet with replicas: 0 (and suspends CronJobs) and
|
|
# takes precedence over any per-workload replicas value. PVCs, Secrets and
|
|
# Services stay in place; scaleDown: false brings the workloads back up.
|
|
scaleDown: false
|
|
|
|
# Erasing this block (dev: with no sub-keys, or --set dev=null) falls back to
|
|
# the defaults below instead of aborting the render — same for game, server and
|
|
# the hardening/probe/resources blocks (Gitea issue #16, issue #99).
|
|
dev:
|
|
debug: false
|
|
|
|
game:
|
|
experimental: false
|
|
maxPlayers: 4
|
|
# Seasonal (holiday) events. The image only knows the negative switch
|
|
# DISABLESEASONALEVENTS, so the chart NEGATES this value on the way in:
|
|
# enableSeasonalEvents: true renders DISABLESEASONALEVENTS="false" (events
|
|
# run), false renders "true" (events off). Only true/false are accepted, in
|
|
# boolean or string form; anything else aborts the render instead of being
|
|
# read as one of the two.
|
|
#
|
|
# The default is false on purpose, and it is not a preference: it reproduces
|
|
# what this chart has ALWAYS rendered. Up to 6.1.0 the key was called
|
|
# game.seasonalEvents and was passed through UNCHANGED, so its default true
|
|
# wrote DISABLESEASONALEVENTS=true — the events were off in every install,
|
|
# while values.schema.json claimed "true means events are enabled" (#215).
|
|
# Keeping the rendered result identical is what makes this rename loud
|
|
# instead of silent: nobody's server changes behaviour by upgrading, and the
|
|
# old key is now rejected by the schema, so anyone who set it has to decide
|
|
# again. Set enableSeasonalEvents: true to actually switch the events on.
|
|
enableSeasonalEvents: false
|
|
|
|
# Erasing this block, or any single key in it, falls back to the defaults below
|
|
# (Gitea issue #16). Before 7.0.1 "server: null" aborted the render and a single
|
|
# erased key was worse: a nulled gamePort rendered an empty port number into the
|
|
# Service and the StatefulSet, and a nulled storage a PVC without a size — both
|
|
# rejected by the API server at apply time, not by the render.
|
|
server:
|
|
# Replica count for this workload; 0 is allowed and scales it down.
|
|
# The chart-global scaleDown flag takes precedence.
|
|
replicas: 1
|
|
gamePort: 30777
|
|
messagingPort: 30888
|
|
# The size of the data PVC. An erased value falls back to this default; up to
|
|
# 7.0.0 it rendered a PVC asking for no size at all.
|
|
storage: 20Gi
|
|
resources:
|
|
# Limits are optional: memory and ephemeral-storage limits default to
|
|
# limitFactor x the request, an explicitly set limit always wins, and a
|
|
# CPU limit is only set when configured explicitly under "limits".
|
|
# The game server holds a large world in memory, so the default factor
|
|
# stays at 2 to keep the limit at the previously published 8Gi.
|
|
limitFactor: 2
|
|
requests:
|
|
memory: "4Gi"
|
|
cpu: "1"
|
|
ephemeral-storage: "5Gi"
|
|
|
|
# Extra environment variables for the server container, appended to the ones
|
|
# the chart always sets (DEBUG, MAXPLAYERS, PGID, PUID, SKIPUPDATE, STEAMBETA,
|
|
# DISABLESEASONALEVENTS, SERVERGAMEPORT, SERVERMESSAGINGPORT). Values are
|
|
# rendered through tpl and support the value, secretKeyRef and configMapKeyRef
|
|
# forms:
|
|
# - name: SOME_ENV
|
|
# value: "{{ .Release.Name }}"
|
|
# - name: FROM_SECRET
|
|
# valueFrom:
|
|
# secretKeyRef:
|
|
# name: "some-secret"
|
|
# key: "someKey"
|
|
# - name: FROM_CONFIGMAP
|
|
# valueFrom:
|
|
# configMapKeyRef:
|
|
# name: "some-configmap"
|
|
# key: "someKey"
|
|
env: []
|
|
|
|
# The image's healthcheck script queries the server's HTTPS API on the game
|
|
# port (SERVERGAMEPORT), so liveness/startup keep working under port overrides.
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- "/bin/sh"
|
|
- "-c"
|
|
- "/home/steam/healthcheck.sh"
|
|
failureThreshold: 4
|
|
successThreshold: 1
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: api
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
# The startup probe gates liveness/readiness. The server downloads / updates
|
|
# the game files via Steam on startup, which can take a long time:
|
|
# budget 30s * 40 = 20 minutes.
|
|
startupProbe:
|
|
exec:
|
|
command:
|
|
- "/bin/sh"
|
|
- "-c"
|
|
- "/home/steam/healthcheck.sh"
|
|
periodSeconds: 30
|
|
timeoutSeconds: 10
|
|
failureThreshold: 40
|
|
|
|
securityContext:
|
|
pod:
|
|
runAsNonRoot: true
|
|
# The wolveix/satisfactory-server image supports rootless operation only
|
|
# as its built-in "steam" user (uid/gid 1000) - the entrypoint rejects any
|
|
# other non-root uid/gid. The PUID/PGID env vars only apply to the root
|
|
# entrypoint path and are ignored when running non-root.
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
# fsGroup keeps the data volume writable for the steam user.
|
|
# OnRootMismatch (instead of Always) skips the recursive chown/chmod of
|
|
# the multi-GB game files on every pod start; volumes provisioned by chart
|
|
# versions < 4.0.0 were already chowned to 1000:1000 by the image's root
|
|
# entrypoint.
|
|
fsGroup: 1000
|
|
fsGroupChangePolicy: OnRootMismatch
|
|
# RuntimeDefault applies the container runtime's default seccomp filter,
|
|
# which blocks the syscalls a normal workload never makes. It sits in the
|
|
# pod context on purpose: from here it covers every container in the pod
|
|
# including init containers, while a container-level seccompProfile would
|
|
# have to be repeated for each one (and silently missed on the next one
|
|
# added). A container that genuinely needs a different filter can still
|
|
# override it under securityContext.container, which wins over this value.
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
container:
|
|
allowPrivilegeEscalation: false
|
|
# Works because the chart mounts emptyDirs at /tmp and the steam user's
|
|
# ~/.steam, ~/.config and ~/.local (steamcmd bootstraps itself into
|
|
# ~/.local/share/Steam on start); all other writes go to the PVC at
|
|
# /config.
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
add: []
|