diff --git a/charts/incubator/smtp-relay/.helmignore b/charts/incubator/smtp-relay/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/smtp-relay/.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/smtp-relay/CHANGELOG.md b/charts/incubator/smtp-relay/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/smtp-relay/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/smtp-relay/Chart.yaml b/charts/incubator/smtp-relay/Chart.yaml new file mode 100644 index 00000000000..6ebb6108b7a --- /dev/null +++ b/charts/incubator/smtp-relay/Chart.yaml @@ -0,0 +1,29 @@ +apiVersion: v2 +appVersion: "0.5.1" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.0.1 +deprecated: false +description: A SMTP service for relaying emails. +home: https://truecharts.org/charts/stable/smtp-relay +icon: https://truecharts.org/img/hotlink-ok/chart-icons/smtp-relay.png +keywords: + - smtp-relay + - smtp +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: smtp-relay +sources: + - https://github.com/truecharts/charts/tree/master/charts/stable/smtp-relay + - https://github.com/ix-ai/smtp + - https://ghcr.io/ix-ai/smtp +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - smtp + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/smtp-relay/README.md b/charts/incubator/smtp-relay/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/smtp-relay/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/smtp-relay/icon.png b/charts/incubator/smtp-relay/icon.png new file mode 100644 index 00000000000..3afb6e4427a Binary files /dev/null and b/charts/incubator/smtp-relay/icon.png differ diff --git a/charts/incubator/smtp-relay/questions.yaml b/charts/incubator/smtp-relay/questions.yaml new file mode 100644 index 00000000000..8a0df7b0445 --- /dev/null +++ b/charts/incubator/smtp-relay/questions.yaml @@ -0,0 +1,145 @@ +# Include{groups} +portals: {} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + +# Include{containerBasic} +# Include{containerAdvanced} + + - variable: smtprelay + group: App Configuration + label: SMTP Relay Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: networks + label: Relay Networks + schema: + type: list + empty: false + default: + - 172.16.0.0/16 + required: true + items: + - variable: network + label: Network + schema: + type: string + required: true + default: "" + - variable: domains + label: Domains + schema: + type: list + default: [] + required: true + items: + - variable: domain + label: Domain + schema: + type: string + required: true + default: "" + - variable: generic + label: generic Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: address + label: Address + schema: + type: string + default: "" + - variable: port + label: Port + schema: + type: int + default: 587 + - variable: user + label: User + schema: + type: string + default: "" + - variable: pass + label: Password + schema: + type: string + private: true + default: "" + - variable: aliases + label: Aliases + schema: + type: list + default: [] + required: true + items: + - variable: alias + label: Alias + schema: + type: string + required: true + default: "" + +# 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: 25 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceList} +# 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{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/smtp-relay/templates/NOTES.txt b/charts/incubator/smtp-relay/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/smtp-relay/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/smtp-relay/templates/common.yaml b/charts/incubator/smtp-relay/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/smtp-relay/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/smtp-relay/values.yaml b/charts/incubator/smtp-relay/values.yaml new file mode 100644 index 00000000000..2df81cd45e6 --- /dev/null +++ b/charts/incubator/smtp-relay/values.yaml @@ -0,0 +1,57 @@ +image: + repository: tccr.io/truecharts/smtp-relay + pullPolicy: IfNotPresent + tag: v0.5.1@sha256:205cd0d120ab96071e599451664398a8e209c80b0b6c2944ca7ad4f463c0bd93 + +securityContext: + container: + runAsNonRoot: false + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + protocol: http + port: 25 + +smtprelay: + networks: + - 172.16.0.0/16 + domains: [] + generic: + address: "" + port: 587 + user: "" + pass: "" + aliases: [] + +workload: + main: + podSpec: + containers: + main: + probes: + liveness: + type: tcp + readiness: + type: tcp + startup: + type: tcp + env: + PORT: "{{ .Values.service.main.ports.main.port }}" + RELAY_NETWORKS: '{{ join " : " .Values.smtprelay.networks }}' + RELAY_DOMAINS: '{{ join " : " .Values.smtprelay.domains }}' + DISABLE_IPV6: true + # # Generic SMTP Relay + SMARTHOST_ADDRESS: "{{ .Values.smtprelay.generic.address }}" + SMARTHOST_PORT: "{{ .Values.smtprelay.generic.port }}" + SMARTHOST_USER: "{{ .Values.smtprelay.generic.user }}" + SMARTHOST_PASSWORD: "{{ .Values.smtprelay.generic.pass }}" + SMARTHOST_ALIASES: '{{ join " : " .Values.smtprelay.generic.aliases }}' + +portal: + open: + enabled: false