From fbbda12fe3dff8091d50d0b10a4a5a48b1c59e7d Mon Sep 17 00:00:00 2001 From: Xstar97 Date: Tue, 1 Nov 2022 08:31:31 -0400 Subject: [PATCH] fix(quiz-game) added persistence + nw service (#4265) * fix(quiz-game) persistence + nw service * rofs false * rar * disable probes --- charts/incubator/quiz-game/Chart.yaml | 17 +++-- charts/incubator/quiz-game/questions.yaml | 93 +++++++++++++++++++---- charts/incubator/quiz-game/values.yaml | 29 ++++--- 3 files changed, 109 insertions(+), 30 deletions(-) diff --git a/charts/incubator/quiz-game/Chart.yaml b/charts/incubator/quiz-game/Chart.yaml index 51db1cd717e..45e7aec46c4 100644 --- a/charts/incubator/quiz-game/Chart.yaml +++ b/charts/incubator/quiz-game/Chart.yaml @@ -1,9 +1,3 @@ -annotations: - truecharts.org/SCALE-support: "true" - truecharts.org/catagories: | - - GameServers - - Other - - Network-Web apiVersion: v2 appVersion: "latest" dependencies: @@ -11,7 +5,7 @@ dependencies: repository: https://library-charts.truecharts.org version: 10.7.7 deprecated: false -description: Test your General Knowledge in different types of topics. This game is inspired on the show "who wants to be a millionaire?". You must answer correctly 15 questions to become a millionaire. Difficulty ascends as you progress in the game and questions and their categories are randomized each time you start a new match. At the end of your playthrough you can optionally register your score in the ranking, however only the top 10 results will be displayed +description: Test your General Knowledge in different types of topics. home: https://truecharts.org/docs/charts/incubator/quiz-game icon: https://truecharts.org/img/hotlink-ok/chart-icons/quiz-game.png keywords: @@ -30,4 +24,11 @@ sources: - https://github.com/ASKJR/quiz-game - https://registry.hub.docker.com/r/patrickstigler/quiz-game type: application -version: 0.0.31 +version: 0.0.32 +annotations: + truecharts.org/catagories: | + - GameServers + - Other + - Network-Web + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/quiz-game/questions.yaml b/charts/incubator/quiz-game/questions.yaml index 951965fcb12..0d1b570ea4c 100644 --- a/charts/incubator/quiz-game/questions.yaml +++ b/charts/incubator/quiz-game/questions.yaml @@ -1,5 +1,7 @@ # Include{groups} -portals: {} +portals: + open: +# Include{portalLink} questions: # Include{global} # Include{controller} @@ -10,51 +12,116 @@ questions: # Include{recreate} # Include{controllerExpert} # Include{controllerExpertExtraArgs} +# Include{containerConfig} + - variable: env + group: Container Configuration + label: Image Environment + schema: + additional_attrs: true + type: dict + attrs: + - variable: VIRTUAL_HOST + label: Virtual Host + description: web portal. ex -> quiz.mydomain.com + schema: + type: string + default: "" +# 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: 10588 + required: true +# Include{advancedPortHTTP} + - variable: targetPort + label: Target Port + description: The internal(!) port on the container the Application runs on + schema: + type: int + default: 10588 # Include{serviceExpertRoot} default: false # Include{serviceExpert} # Include{serviceList} +# Include{persistenceRoot} + - variable: config + label: App Config Storage + description: Stores the Application Configuration. + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceAdvanced} # Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: Main Ingress + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressExpert} # Include{ingressList} # Include{security} # Include{securityContextAdvancedRoot} - variable: privileged - label: "Privileged mode" + label: Privileged mode schema: type: boolean default: false - variable: readOnlyRootFilesystem - label: "ReadOnly Root Filesystem" + label: ReadOnly Root Filesystem schema: type: boolean default: false - variable: allowPrivilegeEscalation - label: "Allow Privilege Escalation" + label: Allow Privilege Escalation schema: type: boolean default: false - variable: runAsNonRoot - label: "runAsNonRoot" + label: runAsNonRoot schema: type: boolean default: false # Include{securityContextAdvanced} # Include{podSecurityContextRoot} - variable: runAsUser - label: "runAsUser" - description: "The UserID of the user running the application" + label: runAsUser + description: The UserID of the user running the application schema: type: int - default: 0 + default: 568 - variable: runAsGroup - label: "runAsGroup" - description: The groupID this App of the user running the application" + label: runAsGroup + description: The groupID this App of the user running the application schema: type: int - default: 0 + default: 568 - variable: fsGroup - label: "fsGroup" - description: "The group that should own ALL storage." + label: fsGroup + description: The group that should own ALL storage. schema: type: int default: 568 diff --git a/charts/incubator/quiz-game/values.yaml b/charts/incubator/quiz-game/values.yaml index 7fcd41edbfa..1f56de08d7e 100644 --- a/charts/incubator/quiz-game/values.yaml +++ b/charts/incubator/quiz-game/values.yaml @@ -1,12 +1,20 @@ -env: {} image: pullPolicy: IfNotPresent repository: tccr.io/truecharts/quiz-game tag: latest@sha256:0f9a2e9529c8a0fb561e53957029b184a5a652fd03a256383f3d4ac0d06e98d0 -persistence: {} + +securityContext: + runAsNonRoot: false + readOnlyRootFilesystem: false + podSecurityContext: - runAsGroup: 0 runAsUser: 0 + runAsGroup: 0 + +env: + VIRTUAL_HOST: "" + VIRTUAL_PORT: "{{ .Values.service.main.ports.main.port }}" + probes: liveness: enabled: false @@ -14,15 +22,18 @@ probes: enabled: false startup: enabled: false -securityContext: - readOnlyRootFilesystem: false - runAsNonRoot: false + service: main: - enabled: false ports: main: - enabled: false + protocol: HTTP + port: 10588 + +persistence: + config: + enabled: true + mountPath: /app portal: - enabled: false + enabled: true