From cf4ee3cad8f931f1e298a724c8dab2a4b82e04b0 Mon Sep 17 00:00:00 2001 From: Xstar97 Date: Wed, 27 Jul 2022 12:37:38 -0400 Subject: [PATCH] feat(ts3-manager): Add ts3-manager (#3323) * feat(ts3-manager): Add ts3-manager * Update charts/incubator/ts3-manager/values.yaml thanks, i didnt catch that at all! Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/ts3-manager/questions.yaml Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/ts3-manager/questions.yaml sorry, copy-pasta Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/ts3-manager/questions.yaml Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * Update charts/incubator/ts3-manager/values.yaml oh! Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> * add readme and update questions * actually udapte questions * diff probes * shell * wget Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros kois --- charts/incubator/ts3-manager/Chart.yaml | 30 ++ charts/incubator/ts3-manager/README.md | 0 charts/incubator/ts3-manager/icon.png | Bin 0 -> 5685 bytes charts/incubator/ts3-manager/questions.yaml | 288 ++++++++++++++++++ .../ts3-manager/templates/common.yaml | 1 + charts/incubator/ts3-manager/values.yaml | 61 ++++ cspell.config.yaml | 1 + 7 files changed, 381 insertions(+) create mode 100644 charts/incubator/ts3-manager/Chart.yaml create mode 100644 charts/incubator/ts3-manager/README.md create mode 100644 charts/incubator/ts3-manager/icon.png create mode 100644 charts/incubator/ts3-manager/questions.yaml create mode 100644 charts/incubator/ts3-manager/templates/common.yaml create mode 100644 charts/incubator/ts3-manager/values.yaml diff --git a/charts/incubator/ts3-manager/Chart.yaml b/charts/incubator/ts3-manager/Chart.yaml new file mode 100644 index 00000000000..4c39af0b198 --- /dev/null +++ b/charts/incubator/ts3-manager/Chart.yaml @@ -0,0 +1,30 @@ +apiVersion: v2 +kubeVersion: ">=1.16.0-0" +name: ts3-manager +version: 0.0.1 +appVersion: "v2.2.0" +description: A modern web interface for maintaining Teamspeak3 servers. +type: application +deprecated: false +home: https://github.com/truecharts/charts/tree/master/charts/incubator/ts3-manager +icon: https://truecharts.org/img/chart-icons/ts3-manager.png +keywords: + - ts3-manager + - teamspeak + - teamspeak3 +sources: + - https://hub.docker.com/r/joni1802/ts3-manager/ + - https://github.com/joni1802/ts3-manager/ +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 10.4.8 +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +annotations: + truecharts.org/catagories: | + - web + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/ts3-manager/README.md b/charts/incubator/ts3-manager/README.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/charts/incubator/ts3-manager/icon.png b/charts/incubator/ts3-manager/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..a1f08c54626f864a0beb32858f8bbef0b5602be3 GIT binary patch literal 5685 zcmb`LS5#A7l*bW7KS7Gpk*+Ac_b$~EAhbxR(n1kXq$nULN|7c=54{;cS^@-+B1J=Q zn$V@ghm_EyNS}kw!_1nOS+nLL>*k)j*E#o`yZ3+p_6~>Y=}=LyQjn04P~E+wX$Y>H zBqZlZ{viebh_n}B;BwB>P)D7ltdDI8+?;p3t$Uk<1QSDfWJ3<_FFm;f_aq^?>UH)z zH;LeUPC~-abyxGY@pCI;#=fSuT4pZH!ScrZ1=dkw}-IRfj zf4CpD#)@^pc2`4kONyB53?E2O^{1}{crQ+PTM8^%d{SN9d7;F)N7GloC-1oSprC(L zW%2anoSI0iGuO2asaPs|){YAjRQ6=Z3l%{SvQafukSiBnP3Hghct8f&j;jr{DKQQUJxAPneN-@=fAn_D}(n*PiWowxGaEI04mvi-s2n=scr z?kXFIE1Q-M8KKkbJJJ7aU}o}-4!;6xwjS#7WL>umtNJw;zbrOns0o(@l>;3zv?3g$ zF{+6wHJfND(n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ab8vL8)DuDfZNb@N& zsT8{#8X4P2vU^i-5qKM%ilAp{@3$3&BXmbCK2e1kjR7hyH?4f%h!lLjC8ZH%@7nLi zb@C6IKcG~3nnK!;33;*>23umuvIyyTzMHG$IWPTauyn6k9Mqh`7PgzrEv|QcWDundm)VN(}<((N3JR_>nHqO@-9aI?LYu ztr6w>LCnPu5j2OzfH85?Ga6+D0LkQ2I(|8 zBTYPv$prI(wraEb?`j#X=-;h<5ilUu^b~fN0!et*9`w?-IG*X?4BwMqS)Wr?@h=4m=KV>-%+v3bB4)lJV#EiBSA zH1^*P0K$2p9|_ z86!Me$9Bx0QXR2c@ALEV{kChL^wU*D_n|)${873xE~D}{y!>H4)TI?K8ct*D1BQc= z-25@_XcsNiX|WtR+ls8`dP|Vqn1TZP=RAa90AiN?`7V3gce`DXJ!;O{xYky-<9Y zo~aiqi6?!bLOS+jqD_^L&n)*TDq4Fk*5JfdAJC63QuIRMUyvlVvzdwdq*{3#r0^_o zTHx@!S#}_b9EZb!=F|~rE)kgtIi(Ya?V0jAoo5}uG0n0TP|@D*p9xIS*9Z&T(LVGU`+se4 i{_oqPOs7Y`PWcvN+Oo`l_<&X~$z3fy%`)|eum1zy$|2?e literal 0 HcmV?d00001 diff --git a/charts/incubator/ts3-manager/questions.yaml b/charts/incubator/ts3-manager/questions.yaml new file mode 100644 index 00000000000..74bdc2c5494 --- /dev/null +++ b/charts/incubator/ts3-manager/questions.yaml @@ -0,0 +1,288 @@ +# Include{groups} +portals: + open: + protocols: + - "$kubernetes-resource_configmap_portal_protocol" + host: + - "$kubernetes-resource_configmap_portal_host" + ports: + - "$kubernetes-resource_configmap_portal_port" +questions: + - variable: portal + group: "Container Image" + label: "Configure Portal Button" + schema: + type: dict + hidden: true + attrs: + - variable: enabled + label: "Enable" + description: "enable the portal button" + schema: + hidden: true + editable: false + type: boolean + default: true +# Include{global} + + - variable: controller + group: "Controller" + label: "" + schema: + additional_attrs: true + type: dict + attrs: + - variable: advanced + label: "Show Advanced Controller Settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: type + description: "Please specify type of workload to deploy" + label: "(Advanced) Controller Type" + schema: + type: string + default: "deployment" + required: true + enum: + - value: "deployment" + description: "Deployment" + - value: "statefulset" + description: "Statefulset" + - value: "daemonset" + description: "Daemonset" + - variable: replicas + description: "Number of desired pod replicas" + label: "Desired Replicas" + schema: + type: int + default: 1 + required: true + - variable: strategy + description: "Please specify type of workload to deploy" + label: "(Advanced) Update Strategy" + schema: + type: string + default: "RollingUpdate" + required: true + enum: + - value: "Recreate" + description: "Recreate: Kill existing pods before creating new ones" + - value: "RollingUpdate" + description: "RollingUpdate: Create new pods and then kill old ones" + - value: "OnDelete" + description: "(Legacy) OnDelete: ignore .spec.template changes" +# Include{controllerExpert} + + - variable: env + group: "Container Configuration" + label: "Image Environment" + schema: + additional_attrs: true + type: dict + attrs: + - variable: WHITELIST + label: "WHITELIST" + description: "Comma separated list of TeamSpeak servers you can connect to (ip or domain)" + schema: + type: string + default: "" + - variable: secretEnv + group: "Container Configuration" + label: "Image Secrets" + schema: + additional_attrs: true + type: dict + attrs: + - variable: JWT_SECRET + label: "JWT SECRET" + description: "Secret for decrypting and encrypting the token" + schema: + type: string + private: true + required: false + default: "" +# Include{containerConfig} + + - variable: service + group: "Networking and Services" + label: "Configure Service(s)" + schema: + additional_attrs: true + type: dict + attrs: + - 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{serviceSelector} + - 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: 10284 + required: true + - variable: advanced + label: "Show Advanced settings" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: enabled + label: "Enable the port" + schema: + type: boolean + default: true + - variable: protocol + label: "Port Type" + schema: + type: string + default: "HTTP" + enum: + - value: HTTP + description: "HTTP" + - value: "HTTPS" + description: "HTTPS" + - value: TCP + description: "TCP" + - value: "UDP" + description: "UDP" + - variable: nodePort + label: "Node Port (Optional)" + description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer" + schema: + type: int + min: 9000 + max: 65535 + - variable: targetPort + label: "Target Port" + description: "The internal(!) port on the container the Application runs on" + schema: + type: int + default: 10284 + + - variable: serviceexpert + group: "Networking and Services" + label: "Show Expert Config" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: hostNetwork + group: "Networking and Services" + label: "Host-Networking (Complicated)" + schema: + type: boolean + default: false + +# Include{serviceExpert} +# Include{serviceList} + +# Include{persistenceList} + + - variable: ingress + label: "" + group: "Ingress" + schema: + additional_attrs: true + type: dict + attrs: + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} + +# Include{ingressTLS} + +# Include{ingressTraefik} + +# Include{ingressExpert} +# Include{ingressList} + +# Include{security} + + - variable: advancedSecurity + label: "Show Advanced Security Settings" + group: "Security and Permissions" + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: securityContext + label: "Security Context" + schema: + additional_attrs: true + type: dict + attrs: + - variable: privileged + label: "Privileged mode" + schema: + type: boolean + default: false + - variable: readOnlyRootFilesystem + label: "ReadOnly Root Filesystem" + schema: + type: boolean + default: true + - variable: allowPrivilegeEscalation + label: "Allow Privilege Escalation" + schema: + type: boolean + default: false + - variable: runAsNonRoot + label: "runAsNonRoot" + schema: + type: boolean + default: true +# Include{securityContextAdvanced} + + - variable: podSecurityContext + group: "Security and Permissions" + label: "Pod Security Context" + schema: + additional_attrs: true + type: dict + attrs: + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 568 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID this App of the user running the application" + schema: + type: int + default: 568 + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 +# Include{podSecurityContextAdvanced} + +# Include{resources} + +# Include{advanced} + +# Include{addons} diff --git a/charts/incubator/ts3-manager/templates/common.yaml b/charts/incubator/ts3-manager/templates/common.yaml new file mode 100644 index 00000000000..c1a366e1cf0 --- /dev/null +++ b/charts/incubator/ts3-manager/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.common.loader.all" . }} diff --git a/charts/incubator/ts3-manager/values.yaml b/charts/incubator/ts3-manager/values.yaml new file mode 100644 index 00000000000..c51553c24ca --- /dev/null +++ b/charts/incubator/ts3-manager/values.yaml @@ -0,0 +1,61 @@ +image: + repository: joni1802/ts3-manager + pullPolicy: IfNotPresent + tag: v2.2.0@sha256:9db01d161d2b37e8e872ed701cbedb3986eff46721d12f4d59279abfec5b0354 + +env: + PORT: "{{ .Values.service.main.ports.main.port }}" + +secretEnv: + JWT_SECRET: "changeme" + +probes: + liveness: + enabled: true + custom: true + spec: + exec: + command: + - /bin/sh + - -c + - wget --spider localhost:10284 + failureThreshold: 5 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 10 + readiness: + enabled: true + custom: true + spec: + exec: + command: + - /bin/sh + - -c + - wget --spider localhost:10284 + failureThreshold: 5 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 10 + startup: + enabled: true + custom: true + spec: + exec: + command: + - /bin/sh + - -c + - wget --spider localhost:10284 + failureThreshold: 5 + initialDelaySeconds: 60 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 10 + +service: + main: + ports: + main: + protocol: HTTP + port: 10284 diff --git a/cspell.config.yaml b/cspell.config.yaml index bee32c03a06..334e89f3954 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -101,6 +101,7 @@ words: - syncthing - targetport - tccr + - teamspeak - traefik - truecharts - truenas