diff --git a/charts/incubator/gamevault-backend/.helmignore b/charts/incubator/gamevault-backend/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/gamevault-backend/.helmignore @@ -0,0 +1,30 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/gamevault-backend/CHANGELOG.md b/charts/incubator/gamevault-backend/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/gamevault-backend/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/gamevault-backend/Chart.yaml b/charts/incubator/gamevault-backend/Chart.yaml new file mode 100644 index 00000000000..c06e0348d88 --- /dev/null +++ b/charts/incubator/gamevault-backend/Chart.yaml @@ -0,0 +1,28 @@ +apiVersion: v2 +appVersion: "2.0.0" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 12.14.6 +deprecated: false +description: the self-hosted gaming platform for alternatively obtained games. +home: https://truecharts.org/charts/stable/gamevault-backend +icon: https://truecharts.org/img/hotlink-ok/chart-icons/gamevault-backend.png +keywords: + - gamevault-backend + - games +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: gamevault-backend +sources: + - https://github.com/truecharts/charts/tree/master/charts/stable/gamevault-backend + - https://github.com/Phalcode/gamevault-backend +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - games + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/gamevault-backend/README.md b/charts/incubator/gamevault-backend/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/gamevault-backend/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/gamevault-backend/icon.png b/charts/incubator/gamevault-backend/icon.png new file mode 100644 index 00000000000..6812d884565 Binary files /dev/null and b/charts/incubator/gamevault-backend/icon.png differ diff --git a/charts/incubator/gamevault-backend/questions.yaml b/charts/incubator/gamevault-backend/questions.yaml new file mode 100644 index 00000000000..d0272984937 --- /dev/null +++ b/charts/incubator/gamevault-backend/questions.yaml @@ -0,0 +1,229 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + + - variable: env + label: Image Environment + schema: + additional_attrs: true + type: dict + attrs: + - variable: SERVER_ADMIN_USERNAME + label: "Server Admin User" + schema: + type: string + required: true + default: "" + - variable: SERVER_ADMIN_PASSWORD + label: "Server Admin Password" + schema: + type: string + private: true + required: true + default: "" + - variable: server + label: Show Server Settings + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: SERVER_REGISTRATION_DISABLED + label: "Server Registration Disabled" + description: "If registration is enabled or not." + schema: + type: boolean + default: false + - variable: SERVER_ACCOUNT_ACTIVATION_DISABLED + label: "Server Account Activation Disabled" + description: "If accounts need to be activated by an admin before using them." + schema: + type: boolean + default: false + - variable: SERVER_CORS_ALLOWED_ORIGINS + label: "Server Cors Allowed Origin" + description: "A comma-separated list of Allowed CORS origins for the server." + schema: + type: string + required: true + default: "*" + - variable: SERVER_LOG_LEVEL + label: "Server Log Level" + description: "The log level of the server." + schema: + type: string + required: true + default: "info" + enum: + - value: "debug" + description: "Debug" + - value: "info" + description: "Info" + - value: "warn" + description: "Warn" + - value: "error" + description: "Error" + - value: "fatal" + description: "Fatal" + - variable: games_images + label: Show Games and Images Settings + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: GAMES_INDEX_INTERVAL_IN_MINUTES + label: "Games Index Interval In Minutes" + description: "The index interval in minutes. Determines how often the server should index the list of games." + schema: + type: int + default: 5 + min: 1 + - variable: IMAGE_GC_KEEP_DAYS + label: "Image GC Keep Days" + description: "The number of days to keep unused images. After this period, images that have not been accessed are deleted." + schema: + type: int + default: 30 + min: 1 + - variable: IMAGE_GC_INTERVAL_MINUTES + label: "Image GC Interval Minutes" + description: "How often to run the image garbage collector, in minutes." + schema: + type: int + default: 60 + min: 1 + - variable: rawg + label: Show RAWG Server Settings + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: RAWG_API_URL + label: RAWG API Url + schema: + type: string + required: true + default: https://api.rawg.io/api + - variable: RAWG_API_CACHE_DAYS + label: RAWG API Cache Days + schema: + type: int + default: 7 + min: 1 + - variable: RAWG_API_KEY + label: RAWG API Key + schema: + type: string + default: "" + +# Include{containerBasic} +# Include{containerAdvanced} + +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} + - variable: main + label: Main Service + description: The Primary service on which the healthcheck runs, often the webUI + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + label: Main Service Port Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: Port + description: This port exposes the container port on the service + schema: + type: int + default: 8080 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: logs + label: "App Logs Storage" + description: "Stores the Application Logs." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: images + label: "App Images Storage" + description: "Stores the Application Images." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: games + label: "App Games Storage" + description: "Stores the Application Games." + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressAdvanced} +# Include{ingressList} +# Include{securityContextRoot} + + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 0 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/gamevault-backend/templates/NOTES.txt b/charts/incubator/gamevault-backend/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/gamevault-backend/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/gamevault-backend/templates/common.yaml b/charts/incubator/gamevault-backend/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/gamevault-backend/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/gamevault-backend/values.yaml b/charts/incubator/gamevault-backend/values.yaml new file mode 100644 index 00000000000..808b5b08a98 --- /dev/null +++ b/charts/incubator/gamevault-backend/values.yaml @@ -0,0 +1,91 @@ +image: + repository: tccr.io/truecharts/gamevault-backend + pullPolicy: IfNotPresent + tag: 2.0.0@sha256:1cde674b30dc9abc8ff5958f1cd0bce4382ba65f64bb33fdce35c5a8c12641f6 + +securityContext: + container: + runAsNonRoot: false + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + protocol: http + port: 8080 + +workload: + main: + podSpec: + containers: + main: + probes: + liveness: + path: /api/v1/health + type: http + readiness: + path: /api/v1/health + type: http + startup: + path: /api/v1/health + type: http + env: + SERVER_PORT: "{{ .Values.service.main.ports.main.port }}" + # manually set and change to /games so its easy for users to know where to place their game files. + VOLUMES_FILES: /games + VOLUMES_IMAGES: /images + VOLUMES_LOG: /logs + # DB + DB_SYSTEM: POSTGRESQL + DB_PORT: 5432 + DB_HOST: + secretKeyRef: + name: cnpg-main-urls + key: host + DB_DATABASE: "{{ .Values.cnpg.main.database }}" + DB_USERNAME: "{{ .Values.cnpg.main.user }}" + DB_PASSWORD: + secretKeyRef: + name: cnpg-main-user + key: password + # ADMIN + SERVER_ADMIN_USERNAME: "admin" + SERVER_ADMIN_PASSWORD: "password" + SERVER_REGISTRATION_DISABLED: true + SERVER_ACCOUNT_ACTIVATION_DISABLED: false + # SERVER + SERVER_LOG_LEVEL: info + SERVER_CORS_ALLOWED_ORIGINS: "*" + # GAMES + GAMES_INDEX_INTERVAL_IN_MINUTES: 5 + # IMAGES + IMAGE_GC_KEEP_DAYS: 30 + IMAGE_GC_INTERVAL_MINUTES: 60 + # RAWG + RAWG_API_URL: https://api.rawg.io/api + RAWG_API_CACHE_DAYS: 7 + # RAWG_API_KEY: "" + +persistence: + logs: + enabled: true + mountPath: /logs + images: + enabled: true + mountPath: /images + games: + enabled: true + mountPath: /games + +cnpg: + main: + enabled: true + user: gamevault + database: gamevault + +portal: + open: + enabled: true