migrate(factorio) migrate factorio to new common (#9331)

**Description**

Migrate factorio to new common

⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

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

**🧪 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
-->
Used helm lint on the chart and passed
helm install was sucessful
Rendered questions.yaml in an instance of TrueNAS SCALE and it appeared
correct.

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

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [x] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [x] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

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

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [ ] 🖼️ 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: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
kryojenik
2023-06-03 14:33:31 +02:00
committed by GitHub
co-authored by Stavros Kois
parent 7e0b3cac1f
commit b1e0df0f4b
4 changed files with 105 additions and 101 deletions
+16 -16
View File
@@ -1,28 +1,28 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- GameServers
apiVersion: v2 apiVersion: v2
kubeVersion: ">=1.16.0-0"
name: factorio
version: 4.0.0
appVersion: "stable" appVersion: "stable"
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 11.1.2
deprecated: false
description: "This Chart Chart will download the latest stable release of the game, generate the map and you're ready to play." description: "This Chart Chart will download the latest stable release of the game, generate the map and you're ready to play."
type: application
deprecated: false
home: https://truecharts.org/charts/incubator/factorio home: https://truecharts.org/charts/incubator/factorio
icon: https://truecharts.org/img/hotlink-ok/chart-icons/factorio.png icon: https://truecharts.org/img/hotlink-ok/chart-icons/factorio.png
keywords: keywords:
- factorio - factorio
- GameServers - GameServers
kubeVersion: ">=1.16.0-0" sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/factorio
- https://www.factorio.com/
dependencies:
- name: common
repository: https://library-charts.truecharts.org
version: 12.10.10
maintainers: maintainers:
- email: info@truecharts.org - email: info@truecharts.org
name: TrueCharts name: TrueCharts
url: https://truecharts.org url: https://truecharts.org
name: factorio annotations:
sources: truecharts.org/catagories: |
- https://github.com/truecharts/charts/tree/master/charts/incubator/factorio - GameServers
- https://www.factorio.com/ truecharts.org/SCALE-support: "true"
type: application
version: 3.0.2
+59 -59
View File
@@ -4,57 +4,57 @@ questions:
# Include{global} # Include{global}
# Include{workload} # Include{workload}
# Include{workloadDeployment} # Include{workloadDeployment}
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
- variable: env
group: App Configuration
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: GENERATE_NEW_SAVE
label: Generate new save on startup
description: Generate a new save if one does not exist before starting the server
schema:
type: boolean
default: false
- variable: LOAD_LATEST_SAVE
label: Load latest save game
description: Load latest when true. Otherwise load SAVE_NAME
schema:
type: boolean
default: true
- variable: SAVE_NAME
label: Game save name (change this to use multiple saves)
description: Name to use for the save file
schema:
type: string
default: _autosave1
- variable: TOKEN
label: Factorio.com Token
description: Import your factorio.com token
schema:
type: string
default: ""
- variable: UPDATE_MODS_ON_START
label: Update server mods BEFORE starting the server
description: If mods should be updated before starting the server
schema:
type: string
default: ""
- variable: USERNAME
label: Factorio.com Username
description: Import your factorio.com username
schema:
type: string
default: ""
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
- variable: env
group: App Configuration
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: GENERATE_NEW_SAVE
label: Generate new save on startup
description: Generate a new save if one does not exist before starting the server
schema:
type: boolean
default: false
- variable: LOAD_LATEST_SAVE
label: Load latest save game
description: Load latest when true. Otherwise load SAVE_NAME
schema:
type: boolean
default: true
- variable: SAVE_NAME
label: Game save name (change this to use multiple saves)
description: Name to use for the save file
schema:
type: string
default: _autosave1
- variable: TOKEN
label: Factorio.com Token
description: Import your factorio.com token
schema:
type: string
default: ""
- variable: UPDATE_MODS_ON_START
label: Update server mods BEFORE starting the server
description: If mods should be updated before starting the server
schema:
type: string
default: ""
- variable: USERNAME
label: Factorio.com Username
description: Import your factorio.com username
schema:
type: string
default: ""
# Include{containerConfig} # Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
label: Main Service label: Main Service
@@ -104,8 +104,8 @@ questions:
# Include{serviceExpert} # Include{serviceExpert}
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot} # Include{persistenceRoot}
- variable: path - variable: config
label: path Storage label: App Config Storage
description: Container Path factorio description: Container Path factorio
schema: schema:
additional_attrs: true additional_attrs: true
@@ -125,20 +125,20 @@ questions:
# Include{ingressTraefik} # Include{ingressTraefik}
# Include{ingressAdvanced} # Include{ingressAdvanced}
# Include{ingressList} # Include{ingressList}
# Include{securityContextRoot}
# Include{podSecurityContextRoot} - variable: runAsUser
- variable: runAsUser label: runAsUser
label: runAsUser description: The UserID of the user running the application
description: The UserID of the user running the application schema:
schema: type: int
type: int default: 0
default: 0 - variable: runAsGroup
- variable: runAsGroup label: runAsGroup
label: runAsGroup description: The groupID this App of the user running the application
description: The groupID this App of the user running the application schema:
schema: type: int
type: int default: 0
default: 0
# Include{securityContextContainer} # Include{securityContextContainer}
# Include{securityContextAdvanced} # Include{securityContextAdvanced}
# Include{securityContextPod} # Include{securityContextPod}
@@ -1,2 +1,2 @@
{{/* Render the templates */}} {{/* Render the templates */}}
{{ include "tc.common.loader.all" . }} {{ include "tc.v1.common.loader.all" . }}
+29 -25
View File
@@ -3,36 +3,39 @@ image:
repository: tccr.io/truecharts/factorio repository: tccr.io/truecharts/factorio
tag: vstable@sha256:6a8a24374e3582abaebf34c9062627914c020d57d2ad88322e53eedf2c767c53 tag: vstable@sha256:6a8a24374e3582abaebf34c9062627914c020d57d2ad88322e53eedf2c767c53
podSecurityContext:
runAsGroup: 0
runAsUser: 0
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
securityContext: securityContext:
readOnlyRootFilesystem: false container:
runAsNonRoot: false readOnlyRootFilesystem: false
runAsNonRoot: false
runAsGroup: 0
runAsUser: 0
env: workload:
GENERATE_NEW_SAVE: false main:
LOAD_LATEST_SAVE: true podSpec:
SAVE_NAME: "_autosave1" containers:
TOKEN: "" main:
UPDATE_MODS_ON_START: "" probes:
USERNAME: "" liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
env:
GENERATE_NEW_SAVE: false
LOAD_LATEST_SAVE: true
SAVE_NAME: "_autosave1"
TOKEN: ""
UPDATE_MODS_ON_START: ""
USERNAME: ""
service: service:
main: main:
ports: ports:
main: main:
port: 34197 port: 34197
protocol: UDP protocol: udp
targetPort: 34197 targetPort: 34197
rcon: rcon:
enabled: true enabled: true
@@ -40,13 +43,14 @@ service:
rcon: rcon:
enabled: true enabled: true
port: 27015 port: 27015
protocol: TCP protocol: tcp
targetPort: 27015 targetPort: 27015
persistence: persistence:
path: config:
enabled: true enabled: true
mountPath: /factorio mountPath: /factorio
portal: portal:
enabled: false open:
enabled: false