Skip to content

Commit

Permalink
chore: change smtp port and tidy up duplicate nodeport text
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Apr 23, 2024
1 parent 0ba2109 commit 2cccf7c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/mailpit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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.15.3
version: 0.15.4
appVersion: 1.15.1
dependencies:
- name: common
Expand Down
3 changes: 1 addition & 2 deletions charts/mailpit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ helm install mailpit jouve/mailpit
| --------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
| `service.http.type` | service type | `ClusterIP` |
| `service.http.nodePort` | nodeport bind for HTTP service | `0` |
| `service.http.nodePort` | Node port for HTTP | `0` |
| `service.http.loadBalancerIP` | %%MAIN_CONTAINER_NAME%% service Load Balancer IP | `""` |
| `service.http.loadBalancerSourceRanges` | %%MAIN_CONTAINER_NAME%% service Load Balancer sources | `[]` |
| `service.http.externalTrafficPolicy` | %%MAIN_CONTAINER_NAME%% service external traffic policy | `Cluster` |
| `service.smtp.type` | service type | `ClusterIP` |
| `service.smtp.port` | port for STMP service | `25` |
| `service.smtp.nodePort` | nodeport bind for STMP service | `0` |
| `service.smtp.nodePort` | Node port for HTTP | `0` |
| `service.smtp.loadBalancerIP` | %%MAIN_CONTAINER_NAME%% service Load Balancer IP | `""` |
| `service.smtp.loadBalancerSourceRanges` | %%MAIN_CONTAINER_NAME%% service Load Balancer sources | `[]` |
| `service.smtp.externalTrafficPolicy` | %%MAIN_CONTAINER_NAME%% service external traffic policy | `Cluster` |
Expand Down
2 changes: 1 addition & 1 deletion charts/mailpit/templates/smtp-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
{{- end }}
ports:
- name: smtp
port: 25
port: {{ .Values.service.smtp.port }}
{{- if and (eq .Values.service.smtp.type "NodePort" "LoadBalancer") (gt (.Values.service.smtp.nodePort | int) 0) }}
nodePort: {{ .Values.service.smtp.nodePort }}
{{- end }}
Expand Down
7 changes: 6 additions & 1 deletion charts/mailpit/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,14 @@
"description": "service type",
"default": "ClusterIP"
},
"port": {
"type": "number",
"description": "port for SMTP",
"default": 0
},
"nodePort": {
"type": "number",
"description": "Node port for HTTP",
"description": "nodeport bind for STMP service",
"default": 0
},
"loadBalancerIP": {
Expand Down
10 changes: 6 additions & 4 deletions charts/mailpit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,10 @@ mailpit:
service:
http:
## @param service.http.type service type
## @param service.http.nodePort nodeport bind for HTTP service
##
type: ClusterIP
## Node ports to expose
## @param service.http.nodePort Node port for HTTP
## @param service.http.nodePort nodeport bind for HTTP service
##
nodePort: 0
## @param service.http.loadBalancerIP %%MAIN_CONTAINER_NAME%% service Load Balancer IP
Expand All @@ -215,11 +214,14 @@ service:
externalTrafficPolicy: Cluster
smtp:
## @param service.smtp.type service type
## @param service.smtp.nodePort nodeport bind for STMP service
##
type: ClusterIP
## ports to expose
## @param service.smtp.port port for SMTP
##
port: 25
## Node ports to expose
## @param service.smtp.nodePort Node port for HTTP
## @param service.smtp.nodePort nodeport bind for STMP service
##
nodePort: 0
## @param service.smtp.loadBalancerIP %%MAIN_CONTAINER_NAME%% service Load Balancer IP
Expand Down

0 comments on commit 2cccf7c

Please sign in to comment.