diff --git a/charts/incubator/peppermint/.helmignore b/charts/incubator/peppermint/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/peppermint/.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/peppermint/CHANGELOG.md b/charts/incubator/peppermint/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/peppermint/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/peppermint/Chart.yaml b/charts/incubator/peppermint/Chart.yaml new file mode 100644 index 00000000000..276fba2e895 --- /dev/null +++ b/charts/incubator/peppermint/Chart.yaml @@ -0,0 +1,37 @@ +annotations: + max_scale_version: 24.04.0 + min_scale_version: 23.10.0 + truecharts.org/SCALE-support: "true" + truecharts.org/category: helpdesk + truecharts.org/max_helm_version: "3.14" + truecharts.org/min_helm_version: "3.11" + truecharts.org/train: incubator +apiVersion: v2 +appVersion: latest +dependencies: + - name: common + version: 20.2.4 + repository: oci://tccr.io/truecharts + condition: "" + alias: "" + tags: [] + import-values: [] +deprecated: false +description: An open source ticket management & help desk solution. +home: https://truecharts.org/charts/incubator/peppermint +icon: https://truecharts.org/img/hotlink-ok/chart-icons/peppermint.png +keywords: + - peppermint + - tickets +kubeVersion: '>=1.24.0-0' +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +name: peppermint +sources: + - https://github.com/Peppermint-Lab/peppermint + - https://github.com/truecharts/charts/tree/master/charts/incubator/peppermint + - https://hub.docker.com/r/pepperlabs/peppermint +type: application +version: 0.0.1 diff --git a/charts/incubator/peppermint/README.md b/charts/incubator/peppermint/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/peppermint/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/peppermint/icon.png b/charts/incubator/peppermint/icon.png new file mode 100644 index 00000000000..e5856411831 Binary files /dev/null and b/charts/incubator/peppermint/icon.png differ diff --git a/charts/incubator/peppermint/questions.yaml b/charts/incubator/peppermint/questions.yaml new file mode 100644 index 00000000000..c5473f98bff --- /dev/null +++ b/charts/incubator/peppermint/questions.yaml @@ -0,0 +1,76 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} +# Include{containerBasic} +# Include{containerAdvanced} +# 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: 10699 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# 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{postgresql} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/peppermint/templates/NOTES.txt b/charts/incubator/peppermint/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/peppermint/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/peppermint/templates/_secrets.tpl b/charts/incubator/peppermint/templates/_secrets.tpl new file mode 100644 index 00000000000..215abc74b39 --- /dev/null +++ b/charts/incubator/peppermint/templates/_secrets.tpl @@ -0,0 +1,13 @@ +{{/* Define the secrets */}} +{{- define "peppermint.secrets" -}} +{{- $secretName := (printf "%s-peppermint-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }} + +{{- $secretKey := randAlphaNum 64 -}} + + {{- with lookup "v1" "Secret" .Release.Namespace $secretName -}} + {{- $secretKey = index .data "SECRET" | b64dec -}} + {{- end }} +enabled: true +data: + SECRET: {{ $secretKey }} +{{- end -}} diff --git a/charts/incubator/peppermint/templates/common.yaml b/charts/incubator/peppermint/templates/common.yaml new file mode 100644 index 00000000000..d38696b1327 --- /dev/null +++ b/charts/incubator/peppermint/templates/common.yaml @@ -0,0 +1,11 @@ +{{/* Make sure all variables are set properly */}} +{{- include "tc.v1.common.loader.init" . -}} + +{{/* Render secrets for peppermint */}} +{{- $secrets := include "peppermint.secrets" . | fromYaml -}} +{{- if $secrets -}} + {{- $_ := set .Values.secret "peppermint-secrets" $secrets -}} +{{- end -}} + +{{/* Render the templates */}} +{{- include "tc.v1.common.loader.apply" . -}} diff --git a/charts/incubator/peppermint/values.yaml b/charts/incubator/peppermint/values.yaml new file mode 100644 index 00000000000..001dd62cd1e --- /dev/null +++ b/charts/incubator/peppermint/values.yaml @@ -0,0 +1,58 @@ +image: + repository: pepperlabs/peppermint + pullPolicy: IfNotPresent + tag: latest@sha256:93ae8f722d5109f2466a7d90d1b023d9e05d2c9cf99d3723651e373355618361 + +securityContext: + container: + runAsNonRoot: false + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + protocol: http + targetPort: 3000 + port: 10699 + api: + enabled: true + type: ClusterIP + ports: + api: + enabled: true + protocol: http + port: 5003 + +workload: + main: + podSpec: + containers: + main: + env: + DB_USERNAME: "{{ .Values.cnpg.main.user }}" + DB_PASSWORD: + secretKeyRef: + name: cnpg-main-user + key: password + DB_HOST: + secretKeyRef: + name: cnpg-main-urls + key: host + SECRET: + secretKeyRef: + name: peppermint-secrets + key: SECRET + API_URL: '{{ printf "http://%v:%v" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.api.ports.api.port }}' + +cnpg: + main: + enabled: true + user: peppermint + database: peppermint + +portal: + open: + enabled: true