diff --git a/charts/incubator/traggo/.helmignore b/charts/incubator/traggo/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/traggo/.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/traggo/CHANGELOG.md b/charts/incubator/traggo/CHANGELOG.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/charts/incubator/traggo/Chart.yaml b/charts/incubator/traggo/Chart.yaml new file mode 100644 index 00000000000..f43b44e928b --- /dev/null +++ b/charts/incubator/traggo/Chart.yaml @@ -0,0 +1,28 @@ +apiVersion: v2 +appVersion: "0.20.2297" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 11.0.4 +deprecated: false +description: Traggo is a tag-based time tracking tool. In Traggo there are no tasks, only tagged time spans. +home: https://truecharts.org/docs/charts/stable/jackett +icon: https://truecharts.org/img/hotlink-ok/chart-icons/jackett.png +keywords: + - time-tracking + - tag +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: traggo +sources: + - https://github.com/traggo/server +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - productivity + truecharts.org/SCALE-support: "true" + truecharts.org/grade: U diff --git a/charts/incubator/traggo/README.md b/charts/incubator/traggo/README.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/charts/incubator/traggo/icon.png b/charts/incubator/traggo/icon.png new file mode 100644 index 00000000000..d2e9f6939d7 Binary files /dev/null and b/charts/incubator/traggo/icon.png differ diff --git a/charts/incubator/traggo/questions.yaml b/charts/incubator/traggo/questions.yaml new file mode 100644 index 00000000000..83a6459a0c9 --- /dev/null +++ b/charts/incubator/traggo/questions.yaml @@ -0,0 +1,152 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{controller} +# Include{replicas} +# Include{replica1} +# Include{controllerExpertExtraArgs} + - variable: traggo + group: App Configuration + label: Traggo Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: username + label: Username + schema: + type: string + required: true + default: "" + - variable: password + label: Password + schema: + type: string + required: true + private: true + default: "" + - variable: pass_strength + label: Password Strength + schema: + type: int + required: true + default: 10 + - variable: log_level + label: Log Level + schema: + type: string + required: true + default: info + enum: + - value: info + description: Info + - value: debug + description: Debug + - value: warn + description: Warn + - value: error + description: Error + - value: fatal + description: Fatal + - value: panic + description: Panic +# Include{containerConfig} +# 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: 12117 + required: true +# 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{persistenceList} +# Include{ingressRoot} + - variable: main + label: Main Ingress + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressList} +# Include{security} +# Include{securityContextAdvancedRoot} + - 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{podSecurityContextRoot} + - 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} +# Include{codeserver} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/traggo/templates/_secret.tpl b/charts/incubator/traggo/templates/_secret.tpl new file mode 100644 index 00000000000..56d28e89aa6 --- /dev/null +++ b/charts/incubator/traggo/templates/_secret.tpl @@ -0,0 +1,21 @@ +{{/* Define the secret */}} +{{- define "traggo.secret" -}} + +{{- $secretName := printf "%s-secret" (include "tc.common.names.fullname" .) }} +--- +apiVersion: v1 +kind: Secret +type: Opaque +metadata: + name: {{ $secretName }} + labels: + {{- include "tc.common.labels" . | nindent 4 }} +stringData: + TRAGGO_DATABASE_DIALECT: sqlite3 + TRAGGO_DATABASE_CONNECTION: /opt/traggo/data/traggo.db + TRAGGO_PORT: {{ .Values.service.main.ports.main.port | quote }} + TRAGGO_PASS_STRENGTH: {{ .Values.traggo.pass_strength | quote }} + TRAGGO_DEFAULT_USER_NAME: {{ .Values.traggo.username }} + TRAGGO_DEFAULT_USER_PASS: {{ .Values.traggo.password }} + TRAGGO_LOG_LEVEL: {{ .Values.traggo.log_level }} +{{- end }} diff --git a/charts/incubator/traggo/templates/common.yaml b/charts/incubator/traggo/templates/common.yaml new file mode 100644 index 00000000000..744efdcfbb3 --- /dev/null +++ b/charts/incubator/traggo/templates/common.yaml @@ -0,0 +1,8 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.common.loader.init" . }} + +{{/* Render secret */}} +{{- include "traggo.secret" . }} + +{{/* Render the templates */}} +{{ include "tc.common.loader.apply" . }} diff --git a/charts/incubator/traggo/values.yaml b/charts/incubator/traggo/values.yaml new file mode 100644 index 00000000000..50437c66fb1 --- /dev/null +++ b/charts/incubator/traggo/values.yaml @@ -0,0 +1,37 @@ +image: + repository: tccr.io/truecharts/traggo + pullPolicy: IfNotPresent + tag: 0.2.3@sha256:ae5f33424ebf5b87716921fdc7e7a46d96c22dc9e6c03a65c1bf4ef4fb0b11f9 + +traggo: + username: admin + password: admin + pass_strength: 10 + log_level: info + +envFrom: + - secretRef: + name: '{{ include "tc.common.names.fullname" . }}-secret' + +service: + main: + ports: + main: + protocol: HTTP + port: 12117 + +probes: + liveness: + type: HTTP + readiness: + type: HTTP + startup: + type: HTTP + +persistence: + config: + enabled: true + mountPath: /opt/traggo/data + +portal: + enabled: true diff --git a/cspell.config.yaml b/cspell.config.yaml index 35b89f8b303..bc9aa25548c 100644 --- a/cspell.config.yaml +++ b/cspell.config.yaml @@ -265,6 +265,7 @@ words: - tlsstores - traefik - traefikservices + - Traggo - trakt - truecharts - truenas