-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add SMTP mock email server (#203)
- Loading branch information
1 parent
c81f6f2
commit 3badb4d
Showing
8 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{{- /* | ||
* Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/}} | ||
|
||
{{ if index .Values "smtp4dev" "enabled" }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: smtp4dev | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: smtp4dev | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: smtp4dev | ||
template: | ||
metadata: | ||
labels: | ||
app: smtp4dev | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: kubernetes.io/os | ||
operator: In | ||
values: | ||
- linux | ||
containers: | ||
- name: smtp4dev | ||
image: rnwood/smtp4dev:3.6.1 | ||
resources: | ||
limits: | ||
memory: "512Mi" | ||
cpu: "500m" | ||
ports: | ||
- containerPort: {{ .Values.smtp4dev.ports.http }} | ||
- containerPort: {{ .Values.smtp4dev.ports.smtp }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{{- /* | ||
* Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/}} | ||
|
||
{{ if index .Values "smtp4dev" "enabled" }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: smtp4dev-ingress | ||
labels: | ||
name: smtp4dev-ingress | ||
spec: | ||
rules: | ||
- host: {{ .Values.smtp4dev.ingress.url }} | ||
http: | ||
paths: | ||
- pathType: Prefix | ||
path: "/" | ||
backend: | ||
service: | ||
name: smtp4dev | ||
port: | ||
number: {{ .Values.smtp4dev.ports.http }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{- /* | ||
* Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/}} | ||
|
||
{{ if index .Values "smtp4dev" "enabled" }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: smtp4dev | ||
spec: | ||
selector: | ||
app: smtp4dev | ||
ports: | ||
- name: smtp | ||
protocol: TCP | ||
port: {{ .Values.smtp4dev.ports.smtp }} | ||
targetPort: 25 | ||
- name: http | ||
protocol: TCP | ||
port: {{ .Values.smtp4dev.ports.http }} | ||
targetPort: 80 | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,15 @@ | |
|
||
portal: | ||
enabled: true | ||
# -- uncomment the following for SMTP mail mock | ||
# backend: | ||
# mailing: | ||
# host: "smtp4dev" | ||
# port: "25" | ||
# user: "portal-user" | ||
# senderEmail: "[email protected]" | ||
# password: "portal-password" | ||
|
||
# -- uncomment the following for persistance | ||
# postgresql: | ||
# primary: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters