Skip to content

Commit

Permalink
[maipit] bitnami/common 2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jouve committed Sep 9, 2023
1 parent 78d9770 commit 07bbcd7
Show file tree
Hide file tree
Showing 16 changed files with 442 additions and 74 deletions.
6 changes: 3 additions & 3 deletions charts/mailpit/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: common
repository: oci://registry-1.docker.io/bitnamicharts
version: 2.8.0
digest: sha256:8ab32897fda14bd026e41d2e532e07b1ea04a31588031cd50aa06d31748d858a
generated: "2023-08-21T11:07:54.622799+02:00"
version: 2.10.1
digest: sha256:3f8cae6c1c6625ed483dbccffae6e274006e5bb3d79b2f1abba15c765d2b6a04
generated: "2023-09-09T11:15:46.800109159+02:00"
3 changes: 2 additions & 1 deletion charts/mailpit/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
apiVersion: v2
name: mailpit
description: An email and SMTP testing tool with API for developers
icon: https://raw.githubusercontent.com/axllent/mailpit/develop/server/ui/mailpit.svg
type: application
version: 0.5.3
version: 0.6.0
appVersion: 1.8.2
dependencies:
- name: common
Expand Down
4 changes: 2 additions & 2 deletions charts/mailpit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ helm install mailpit jouve/mailpit
| Name | Description | Value |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `service.http.type` | service type | `ClusterIP` |
| `service.http.nodePort` | nodeport bind for HTTP service | `nil` |
| `service.http.nodePort` | nodeport bind for HTTP service | `0` |
| `service.smtp.type` | service type | `ClusterIP` |
| `service.smtp.nodePort` | nodeport bind for STMP service | `nil` |
| `service.smtp.nodePort` | nodeport bind for STMP service | `0` |
| `ingress.enabled` | Enable ingress record generation for %%MAIN_CONTAINER_NAME%% | `false` |
| `ingress.annotations` | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | `{}` |
| `ingress.ingressClassName` | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | `""` |
Expand Down
9 changes: 9 additions & 0 deletions charts/mailpit/ci/auth-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mailpit:
ui:
authFile:
enabled: true
htpasswd: toto
smtp:
authFile:
enabled: true
htpasswd: tutu
Empty file.
2 changes: 2 additions & 0 deletions charts/mailpit/ci/ingress-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ingress:
enabled: true
2 changes: 2 additions & 0 deletions charts/mailpit/ci/persistence-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
persistence:
enabled: true
9 changes: 9 additions & 0 deletions charts/mailpit/ci/tls-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
mailpit:
ui:
tls:
enabled: true
secretName: ui-tls
smtp:
tls:
enabled: true
secretName: smtp-tls
19 changes: 7 additions & 12 deletions charts/mailpit/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ kind: Deployment
metadata:
name: {{ template "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- with .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
Expand All @@ -18,14 +15,12 @@ spec:
{{- else if .Values.updateStrategy }}
strategy: {{- toYaml .Values.updateStrategy | nindent 4 }}
{{- end }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) | fromYaml }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 8 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" $podLabels "context" $ ) | nindent 8 }}
{{- if or .Values.podAnnotations (include "mailpit.hasSecret" .) }}
annotations:
{{- with .Values.podAnnotations }}
Expand Down Expand Up @@ -118,7 +113,7 @@ spec:
{{- include "common.tplvalues.render" ( dict "value" . "context" $) | nindent 8 }}
{{- end }}
volumes:
{{- if or .Values.mailpit.ui.authFile.enabled .Values.mailpit.smtp.authFile.enabled .Values.mailpit.ui.tls.secretName .Values.mailpit.smtp.tls.secretName .Values.mailpit.relay.enabled }}
{{- if or .Values.mailpit.ui.authFile.enabled .Values.mailpit.smtp.authFile.enabled .Values.mailpit.ui.tls.enabled .Values.mailpit.smtp.tls.enabled .Values.mailpit.relay.enabled }}
- name: etc
projected:
sources:
Expand All @@ -142,7 +137,7 @@ spec:
{{- end }}
{{- if .Values.mailpit.ui.tls.enabled }}
- secret:
name: {{ .Values.mailpit.ui.tls.secretName }}
name: {{ .Values.mailpit.ui.tls.secretName | required "mailpit.ui.tls.secretName required when tls is enabled" }}
items:
- key: tls.crt
path: ui.crt
Expand All @@ -151,7 +146,7 @@ spec:
{{- end }}
{{- if .Values.mailpit.smtp.tls.enabled }}
- secret:
name: {{ .Values.mailpit.smtp.tls.secretName }}
name: {{ .Values.mailpit.smtp.tls.secretName | required "mailpit.smtp.tls.secretName required when tls is enabled" }}
items:
- key: tls.crt
path: smtp.crt
Expand Down
18 changes: 5 additions & 13 deletions charts/mailpit/templates/http-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ kind: Service
metadata:
name: {{ template "common.names.fullname" . }}-http
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- with .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.commonAnnotations .Values.service.http.annotations }}
annotations:
{{- with .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- with .Values.service.http.annotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- with include "common.tplvalues.merge" ( dict "values" (list .Values.service.http.annotations .Values.commonAnnotations) "context" . ) | fromYaml }}
annotations: {{- . | toYaml | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.http.type }}
Expand All @@ -25,4 +16,5 @@ spec:
nodePort: {{ .Values.service.http.nodePort }}
{{- end }}
targetPort: http
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) | fromYaml }}
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}
15 changes: 3 additions & 12 deletions charts/mailpit/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ kind: Ingress
metadata:
name: {{ template "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- with .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.commonAnnotations .Values.ingress.annotations }}
annotations:
{{- with .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- with .Values.ingress.annotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- with include "common.tplvalues.merge" ( dict "values" (list .Values.ingress.annotations .Values.commonAnnotations) "context" . ) | fromYaml }}
annotations: {{- . | toYaml | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.ingressClassName (eq "true" (include "common.ingress.supportsIngressClassname" .)) }}
Expand Down
15 changes: 3 additions & 12 deletions charts/mailpit/templates/persistentvolumeclaim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ apiVersion: v1
metadata:
name: {{ include "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- with .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.commonAnnotations .Values.persistence.annotations }}
annotations:
{{- with .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- with .Values.persistence.annotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- with include "common.tplvalues.merge" ( dict "values" (list .Values.persistence.annotations .Values.commonAnnotations) "context" . ) | fromYaml }}
annotations: {{- . | toYaml | nindent 4 }}
{{- end }}
spec:
accessModes: {{ .Values.persistence.accessModes | toYaml | nindent 4 }}
Expand Down
5 changes: 1 addition & 4 deletions charts/mailpit/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ kind: Secret
metadata:
name: {{ template "common.names.fullname" . }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- with .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- with .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
Expand Down
18 changes: 5 additions & 13 deletions charts/mailpit/templates/smtp-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,9 @@ kind: Service
metadata:
name: {{ template "common.names.fullname" . }}-smtp
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- with .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- if or .Values.commonAnnotations .Values.service.smtp.annotations }}
annotations:
{{- with .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
{{- with .Values.service.smtp.annotations }}
{{- include "common.tplvalues.render" ( dict "value" . "context" $ ) | nindent 4 }}
{{- end }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- with include "common.tplvalues.merge" ( dict "values" (list .Values.service.smtp.annotations .Values.commonAnnotations) "context" . ) | fromYaml }}
annotations: {{- . | toYaml | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.smtp.type }}
Expand All @@ -25,4 +16,5 @@ spec:
nodePort: {{ .Values.service.smtp.nodePort }}
{{- end }}
targetPort: smtp
selector: {{- include "common.labels.matchLabels" . | nindent 4 }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" (list .Values.podLabels .Values.commonLabels) "context" . ) | fromYaml }}
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}
Loading

0 comments on commit 07bbcd7

Please sign in to comment.