migrate(eco) migrate eco to new common **BREAKING CHANGES** (#11720)

**Description**
Migrate to new common, clean up gui and updated to the latest version
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [X] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [X] 🔃 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
-->

**📃 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
- [ ] ⚠️ 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:
Xstar97TheNoob
2023-08-30 23:24:08 +03:00
committed by GitHub
co-authored by Stavros Kois
parent 12f3a3295c
commit 6e06d67a08
6 changed files with 108 additions and 110 deletions
+1
View File
@@ -12,6 +12,7 @@ chart-dirs:
excluded-charts: excluded-charts:
- charts/dependency/subchart - charts/dependency/subchart
- charts/incubator/twingate-connector - charts/incubator/twingate-connector
- charts/incubator/eco
- charts/incubator/midarr - charts/incubator/midarr
- charts/incubator/orbital-sync - charts/incubator/orbital-sync
- charts/incubator/plex-meta-manager - charts/incubator/plex-meta-manager
+8 -8
View File
@@ -1,15 +1,11 @@
annotations:
truecharts.org/SCALE-support: "true"
truecharts.org/catagories: |
- GameServers
apiVersion: v2 apiVersion: v2
appVersion: "latest" appVersion: "latest"
dependencies: dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 11.1.2 version: 14.0.1
deprecated: false deprecated: false
description: "This Chart will download and install SteamCMD. It will also install ECO and run it." description: A custom SteamCMD chart that runs ECO.
home: https://truecharts.org/charts/incubator/eco home: https://truecharts.org/charts/incubator/eco
icon: https://truecharts.org/img/hotlink-ok/chart-icons/eco.png icon: https://truecharts.org/img/hotlink-ok/chart-icons/eco.png
keywords: keywords:
@@ -23,6 +19,10 @@ maintainers:
name: eco name: eco
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/eco - https://github.com/truecharts/charts/tree/master/charts/incubator/eco
- https://www.steampowered.com/ - https://github.com/ich777/docker-steamcmd-server/tree/eco
type: application type: application
version: 2.0.8 version: 3.0.0
annotations:
truecharts.org/catagories: |
- games
truecharts.org/SCALE-support: "true"
+57 -75
View File
@@ -10,71 +10,53 @@ questions:
# Include{replicas1} # Include{replicas1}
# Include{podSpec} # Include{podSpec}
# Include{containerMain} # Include{containerMain}
- variable: env
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: USERNAME
label: "UserName"
description: "Your Steam username (optionally leave it blank)."
schema:
type: string
default: ""
- variable: PASSWRD
label: "Password"
description: "Your Steam password (optionally leave it blank)"
schema:
type: string
private: true
default: ""
- variable: GAME_ID
label: "Game ID"
description: "The ID of the container to download at start up."
schema:
type: string
default: ""
- variable: GAME_PARAMS
label: "Game Params"
description: "Enter your start up commands for the server."
schema:
type: string
default: ""
- variable: VALIDATE
label: "Validate"
description: "Set the Variable to true if you want to validate the installation otherwise leave it blank."
schema:
type: boolean
default: true
# Include{containerBasic} # Include{containerBasic}
# Include{containerAdvanced} # Include{containerAdvanced}
- variable: secretEnv
group: "App Configuration"
label: "Image Secrets"
schema:
additional_attrs: true
type: dict
attrs:
- variable: USERNAME
label: "USERNAME"
description: "Your Steam username goes here if you want to install a game that needs a valid account, otherwise leave it blank (ATTENTION You have to disable Steam Guard)."
schema:
type: string
default: ""
- variable: PASSWRD
label: "PASSWRD"
description: "Your Steam password goes here if you want to install a game that needs a valid account, otherwise leave it blank (ATTENTION You have to disable Steam Guard)."
schema:
type: string
private: true
default: ""
- variable: env
group: "App Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
- variable: GAME_ID
label: "GAME_ID"
description: "The GAME_ID that the container download at startup.(https://developer.valvesoftware.com/wiki/Dedicated_Servers_List)"
schema:
type: string
default: "739590"
- variable: GAME_PARAMS
label: "GAME_PARAMS"
description: "Enter your start up commands for the server."
schema:
type: string
default: ""
- variable: VALIDATE
label: "VALIDATE"
description: "Set the Variable to true if you want to validate the installation otherwise leave it blank."
schema:
type: boolean
default: true
- variable: DATA_PERM
label: "DATA_PERM"
description: "Container Variable DATAPERM"
schema:
type: string
default: "770"
- variable: UMASK
label: "UMASK"
description: "Container Variable UMASK"
schema:
type: string
default: "000"
# Include{containerConfig} # Include{containerConfig}
# Include{podOptions}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
label: "Main Service" label: Main Service
description: "The Primary service on which the healthcheck runs, often the webUI" description: The Primary service on which the Minecraft Server runs on
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -82,36 +64,36 @@ questions:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: main - variable: main
label: "Main Service Port Configuration" label: Main Service Port Configuration
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: port - variable: port
label: "Port" label: Port
description: "This port exposes the container port on the service" description: This port exposes the container port on the service
schema: schema:
type: int type: int
default: 3001 default: 3001
required: true required: true
- variable: udpgameport - variable: game
label: 'udpgameport service' label: Game Service
description: "UDP Game Port" description: The Game service.
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{serviceSelectorLoadBalancer} # Include{serviceSelectorLoadBalancer}
# Include{serviceSelectorExtras} # Include{serviceSelectorExtras}
- variable: udpgameport - variable: game
label: "udpgameport Service Port Configuration" label: Game Service Port Configuration
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
- variable: port - variable: port
label: "Port" label: Port
description: "This port exposes the container port on the service" description: This port exposes the container port on the service
schema: schema:
type: int type: int
default: 3000 default: 3000
@@ -121,16 +103,16 @@ questions:
# Include{serviceList} # Include{serviceList}
# Include{persistenceRoot} # Include{persistenceRoot}
- variable: steamcmd - variable: steamcmd
label: "steamcmd Storage" label: App SteamCMD Storage
description: "Container Path serverdatasteamcmd" description: Stores the Application SteamCMD.
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
attrs: attrs:
# Include{persistenceBasic} # Include{persistenceBasic}
- variable: serverfiles - variable: serverfiles
label: "serverfiles Storage" label: App Server Files Storage
description: "Container Path serverdataserverfiles" description: Stores the Application Server Files.
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
@@ -139,7 +121,7 @@ questions:
# Include{persistenceList} # Include{persistenceList}
# Include{ingressRoot} # Include{ingressRoot}
- variable: main - variable: main
label: "Main Ingress" label: Main Ingress
schema: schema:
additional_attrs: true additional_attrs: true
type: dict type: dict
+1
View File
@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}
+1 -2
View File
@@ -1,2 +1 @@
{{/* Render the templates */}} {{ include "tc.v1.common.loader.all" . }}
{{ include "tc.common.loader.all" . }}
+40 -25
View File
@@ -1,49 +1,64 @@
image: image:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
repository: tccr.io/truecharts/eco repository: tccr.io/truecharts/eco
tag: latest@sha256:7b380486ce590ba0bb9b3361f84464727126611771ba746210f7a73180d7b987 tag: latest@sha256:b68c9690ea433e1d94363ebf5384342652ab2d9316a2d71c740202669c76aca5
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext: securityContext:
readOnlyRootFilesystem: false container:
runAsNonRoot: false runAsNonRoot: false
readOnlyRootFilesystem: false
secretEnv: runAsUser: 0
USERNAME: "" runAsGroup: 0
PASSWRD: ""
env:
DATA_PERM: "770"
GAME_ID: "739590"
GAME_PARAMS: ""
VALIDATE: false
service: service:
main: main:
ports: ports:
main: main:
port: 3001 port: 3001
protocol: HTTP protocol: http
targetPort: 3001 targetPort: 3001
udpgameport: game:
enabled: true enabled: true
ports: ports:
udpgameport: game:
enabled: true enabled: true
port: 3000 port: 3000
protocol: UDP protocol: udp
targetPort: 3000 targetPort: 3000
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
path: "/"
type: http
port: "{{ .Values.service.main.ports.main.targetPort }}"
readiness:
path: "/"
type: http
port: "{{ .Values.service.main.ports.main.targetPort }}"
startup:
type: tcp
port: "{{ .Values.service.main.ports.main.targetPort }}"
env:
USERNAME: ""
PASSWRD: ""
GAME_ID: "739590"
GAME_PARAMS: ""
VALIDATE: false
# DATA_PERM: "770"
persistence: persistence:
serverfiles:
enabled: true
mountPath: /serverdata/serverfiles
steamcmd: steamcmd:
enabled: true enabled: true
mountPath: /serverdata/steamcmd mountPath: /serverdata/steamcmd
serverfiles:
enabled: true
mountPath: /serverdata/serverfiles
portal: portal:
enabled: true open:
enabled: true