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
kubeVersion: ">=1.16.0-0"
name: factorio
version: 4.0.0
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."
type: application
deprecated: false
home: https://truecharts.org/charts/incubator/factorio
icon: https://truecharts.org/img/hotlink-ok/chart-icons/factorio.png
keywords:
- factorio
- 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:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: factorio
sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/factorio
- https://www.factorio.com/
type: application
version: 3.0.2
annotations:
truecharts.org/catagories: |
- GameServers
truecharts.org/SCALE-support: "true"
+7 -7
View File
@@ -4,13 +4,9 @@ questions:
# Include{global}
# Include{workload}
# Include{workloadDeployment}
# Include{replicas1}
# Include{podSpec}
# Include{containerMain}
# Include{containerBasic}
# Include{containerAdvanced}
- variable: env
group: App Configuration
label: Image Environment
@@ -54,7 +50,11 @@ questions:
schema:
type: string
default: ""
# Include{containerBasic}
# Include{containerAdvanced}
# Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot}
- variable: main
label: Main Service
@@ -104,8 +104,8 @@ questions:
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: path
label: path Storage
- variable: config
label: App Config Storage
description: Container Path factorio
schema:
additional_attrs: true
@@ -125,8 +125,8 @@ questions:
# Include{ingressTraefik}
# Include{ingressAdvanced}
# Include{ingressList}
# Include{securityContextRoot}
# Include{podSecurityContextRoot}
- variable: runAsUser
label: runAsUser
description: The UserID of the user running the application
@@ -1,2 +1,2 @@
{{/* Render the templates */}}
{{ include "tc.common.loader.all" . }}
{{ include "tc.v1.common.loader.all" . }}
+13 -9
View File
@@ -3,10 +3,18 @@ image:
repository: tccr.io/truecharts/factorio
tag: vstable@sha256:6a8a24374e3582abaebf34c9062627914c020d57d2ad88322e53eedf2c767c53
podSecurityContext:
securityContext:
container:
readOnlyRootFilesystem: false
runAsNonRoot: false
runAsGroup: 0
runAsUser: 0
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
enabled: false
@@ -14,11 +22,6 @@ probes:
enabled: false
startup:
enabled: false
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
env:
GENERATE_NEW_SAVE: false
LOAD_LATEST_SAVE: true
@@ -32,7 +35,7 @@ service:
ports:
main:
port: 34197
protocol: UDP
protocol: udp
targetPort: 34197
rcon:
enabled: true
@@ -40,13 +43,14 @@ service:
rcon:
enabled: true
port: 27015
protocol: TCP
protocol: tcp
targetPort: 27015
persistence:
path:
config:
enabled: true
mountPath: /factorio
portal:
open:
enabled: false