Skip to content

Commit

Permalink
chore: add web-smtp-relay
Browse files Browse the repository at this point in the history
  • Loading branch information
aeltorio committed Aug 22, 2024
1 parent 1ab1fea commit 5e1b01e
Show file tree
Hide file tree
Showing 32 changed files with 374 additions and 145 deletions.
2 changes: 1 addition & 1 deletion charts/sctgdesk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: sctgdesk
description: A Helm chart for deploying the backend of the SCTGDesk application
type: application
version: 1.0.6
version: 1.0.7
appVersion: 1.0.0
2 changes: 1 addition & 1 deletion charts/sctgdesk/templates/pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
# command: [ "{{ .Values.hbbs.command }}" ]
command: [ "/bin/sh", "-c", "ln -svf {{ .Values.volume.mountPath }}/secrets/* {{ .Values.volume.mountPath }}/ && {{ .Values.hbbs.command }} -k {{ .Values.secret.id_ed25519 | b64dec }} {{ if .Values.gateway.proxyV2 }}--proxy-v2=Y{{ end }}" ]
command: [ "/bin/sh", "-c", "ln -svf {{ .Values.volume.mountPath }}/secrets/* {{ .Values.volume.mountPath }}/ && {{ .Values.hbbs.command }} -k {{ .Values.secret.id_ed25519 | b64dec }} {{ if .Values.gateway.proxyV2 }}--proxyv2=true{{ end }}" ]
# command: [ "/bin/sh", "-c", "ln -svf {{ .Values.volume.mountPath }}/secrets/* {{ .Values.volume.mountPath }}/ && {{ .Values.hbbs.command }} -k {{ .Values.secret.id_ed25519 | b64dec }}" ]
env:
- name: KEY
Expand Down
7 changes: 7 additions & 0 deletions charts/web-smtp-relay/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v2
name: web-smtp-relay
description: A Helm chart for Web-SMTP Relay
type: application
version: 0.1.0
appVersion: "1.0.0"
icon: https://avatars.githubusercontent.com/u/165936401?v=4
51 changes: 51 additions & 0 deletions charts/web-smtp-relay/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "web-smtp-relay.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "web-smtp-relay.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "web-smtp-relay.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "web-smtp-relay.labels" -}}
helm.sh/chart: {{ include "web-smtp-relay.chart" . }}
{{ include "web-smtp-relay.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "web-smtp-relay.selectorLabels" -}}
app.kubernetes.io/name: {{ include "web-smtp-relay.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
20 changes: 20 additions & 0 deletions charts/web-smtp-relay/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "web-smtp-relay.fullname" . }}-config
labels:
{{- include "web-smtp-relay.labels" . | nindent 4 }}
data:
config.yaml: |
users:
{{- range $key, $value := .Values.config.users }}
{{ $key }}: {{ $value }}
{{- end }}
smtp:
host: {{ .Values.config.smtp.host }}
port: {{ .Values.config.smtp.port }}
username: {{ .Values.config.smtp.username }}
password: {{ .Values.config.smtp.password }}
port: {{ .Values.config.port }}
34 changes: 34 additions & 0 deletions charts/web-smtp-relay/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "web-smtp-relay.fullname" . }}
labels:
{{- include "web-smtp-relay.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "web-smtp-relay.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "web-smtp-relay.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
volumeMounts:
- name: config
mountPath: /app/config.yaml
subPath: config.yaml
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: config
configMap:
name: {{ include "web-smtp-relay.fullname" . }}-config
31 changes: 31 additions & 0 deletions charts/web-smtp-relay/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "web-smtp-relay.fullname" . }}-ingress
annotations:
{{- if .Values.ingress.annotations }}
{{- toYaml .Values.ingress.annotations | nindent 4 }}
{{- end }}
{{- if .Values.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.clusterIssuer }}
{{- end }}
spec:
{{- if .Values.ingress.clusterIssuer }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Release.Name }}-tls
{{- end }}
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: {{ include "web-smtp-relay.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
15 changes: 15 additions & 0 deletions charts/web-smtp-relay/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "web-smtp-relay.fullname" . }}
labels:
{{- include "web-smtp-relay.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "web-smtp-relay.selectorLabels" . | nindent 4 }}
34 changes: 34 additions & 0 deletions charts/web-smtp-relay/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
replicaCount: 1

image:
repository: yourdockerhubusername/web-smtp-relay
pullPolicy: IfNotPresent
tag: "latest"

service:
type: ClusterIP
port: 8080

resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi

config:
users:
admin: "$2a$10$XOPbrlUPQdwdJUpSrIF6X.LbE14qsMmKGhM1A8W9iqDuy0Bx8KzWq"
smtp:
host: smtp.example.com
port: 587
username: your_username
password: your_password
port: 8080

ingress:
enabled: false
host: example.com
annotations: {}
clusterIssuer: "cert-manager"
Binary file modified repo/cert-manager-webhook-oci-1.3.1.tgz
Binary file not shown.
Binary file modified repo/cloudflared-0.1.0.tgz
Binary file not shown.
Binary file modified repo/crontab-ui-1.0.0.tgz
Binary file not shown.
Binary file modified repo/dolidock-0.11.4.tgz
Binary file not shown.
Binary file modified repo/easyappointments-0.2.0.tgz
Binary file not shown.
Binary file modified repo/flex-smtpd-0.1.6.tgz
Binary file not shown.
Binary file modified repo/gitea-1.0.2.tgz
Binary file not shown.
Binary file modified repo/hcf-coder-0.3.0.tgz
Binary file not shown.
Binary file modified repo/hcfmailer-1.0.0.tgz
Binary file not shown.
Binary file modified repo/hcfmailerplus-0.4.1.tgz
Binary file not shown.
Binary file modified repo/hcfschedule-0.1.0.tgz
Binary file not shown.
Binary file modified repo/helm-dashboard-0.1.9.tgz
Binary file not shown.
20 changes: 17 additions & 3 deletions repo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ <h2>Charts</h2>
<li>
<p>
sctgdesk
(<a href="https://helm-repo.highcanfly.club/sctgdesk-1.0.6.tgz" title="https://helm-repo.highcanfly.club/sctgdesk-1.0.6.tgz">
1.0.6
(<a href="https://helm-repo.highcanfly.club/sctgdesk-1.0.7.tgz" title="https://helm-repo.highcanfly.club/sctgdesk-1.0.7.tgz">
1.0.7
@
1.0.0
</a>)
Expand All @@ -303,6 +303,20 @@ <h2>Charts</h2>
</p>
</li>

<li>
<p>
web-smtp-relay
(<a href="https://helm-repo.highcanfly.club/web-smtp-relay-0.1.0.tgz" title="https://helm-repo.highcanfly.club/web-smtp-relay-0.1.0.tgz">
0.1.0
@
1.0.0
</a>)
</p>
<p>
A Helm chart for Web-SMTP Relay
</p>
</li>

<li>
<p>
whois-rest
Expand All @@ -319,6 +333,6 @@ <h2>Charts</h2>

</ul>
</section>
<time datetime="2024-04-05T10:17:36" pubdate id="generated">Fri Apr 5 2024 10:17:36AM UTC&#43;00:00</time>
<time datetime="2024-08-22T11:14:55" pubdate id="generated">Thu Aug 22 2024 11:14:55AM CEST&#43;02:00</time>
</body>
</html>
Loading

0 comments on commit 5e1b01e

Please sign in to comment.