diff --git a/.github/ct-install.yaml b/.github/ct-install.yaml index ff964febed3..74f196bb18d 100644 --- a/.github/ct-install.yaml +++ b/.github/ct-install.yaml @@ -16,6 +16,7 @@ excluded-charts: - charts/incubator/midarr - charts/incubator/orbital-sync - charts/incubator/plex-meta-manager + - charts/incubator/telepush - charts/library/common - charts/stable/alertmanager-bot - charts/stable/alertmanager-bot diff --git a/charts/incubator/telepush/.helmignore b/charts/incubator/telepush/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/telepush/.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/telepush/CHANGELOG.md b/charts/incubator/telepush/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/telepush/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/telepush/Chart.yaml b/charts/incubator/telepush/Chart.yaml new file mode 100644 index 00000000000..185676f1848 --- /dev/null +++ b/charts/incubator/telepush/Chart.yaml @@ -0,0 +1,29 @@ +apiVersion: v2 +appVersion: "4.1.1" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.3 +deprecated: false +description: A simple bot to translate JSON HTTP requests into Telegram push messages. +home: https://truecharts.org/charts/incubator/telepush +icon: https://truecharts.org/img/hotlink-ok/chart-icons/telepush.png +keywords: + - telepush + - telegram + - notifications +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: telepush +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/telepush + - https://github.com/muety/telepush +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - notifications + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/telepush/README.md b/charts/incubator/telepush/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/telepush/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/telepush/icon.png b/charts/incubator/telepush/icon.png new file mode 100644 index 00000000000..4586e8580b9 Binary files /dev/null and b/charts/incubator/telepush/icon.png differ diff --git a/charts/incubator/telepush/questions.yaml b/charts/incubator/telepush/questions.yaml new file mode 100644 index 00000000000..b9cac166414 --- /dev/null +++ b/charts/incubator/telepush/questions.yaml @@ -0,0 +1,132 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + +# Include{containerBasic} +# Include{containerAdvanced} + + - variable: telepush + group: App Configuration + label: Telepush + schema: + additional_attrs: true + type: dict + attrs: + - variable: mode + label: Mode + description: Run the bot in long-polling- or webhook mode. + schema: + type: string + default: "webhook" + enum: + - value: webhook + description: Webhook + - value: poll + description: Poll + - variable: token + label: Bot Token + description: Your Telegram Bot Token from Botfather. + schema: + type: string + private: true + required: true + default: "" + - variable: rateLimit + label: RateLimit + description: Max number of requests per recipient per hour. + schema: + type: int + default: 100 + min: 1 + - variable: cmdratelimit + label: CMD RateLimit + description: Max number of chat commands to execute per hour. + schema: + type: int + default: 10 + min: 1 + +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# 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: data + label: "App Data Storage" + description: "Stores the Application Data." + 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: 568 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 568 +# 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/telepush/templates/NOTES.txt b/charts/incubator/telepush/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/telepush/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/telepush/templates/common.yaml b/charts/incubator/telepush/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/telepush/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/telepush/values.yaml b/charts/incubator/telepush/values.yaml new file mode 100644 index 00000000000..8a5b17ed6b1 --- /dev/null +++ b/charts/incubator/telepush/values.yaml @@ -0,0 +1,48 @@ +image: + repository: tccr.io/truecharts/telepush + pullPolicy: IfNotPresent + tag: v4.1.1@sha256:43d1b195c96a73254aaae38efc862b55cfc6ec50d8f098366086076b14890cb2 + +service: + main: + ports: + main: + protocol: http + port: 8080 + +telepush: + # webhook | poll + mode: webhook + token: "" + ratelimit: 100 + cmdratelimit: 10 + +workload: + main: + podSpec: + containers: + main: + probes: + liveness: + path: "/api" + readiness: + path: "/api" + startup: + path: "/api" + args: + - -port + - "{{ .Values.service.main.ports.main.port }}" + env: + APP_MODE: "{{ .Values.telepush.mode }}" + APP_TOKEN: "{{ .Values.telepush.token }}" + APP_RATE_LIMIT: "{{ .Values.telepush.ratelimit }}" + APP_CMD_RATE_LIMIT: "{{ .Values.telepush.cmdratelimit }}" + +persistence: + data: + enabled: true + mountPath: "/srv/data" + +portal: + open: + enabled: false