Skip to content

Commit b30a1a3

Browse files
andriishestakovAndrii Shestakov
andauthored
fix: Allow set externalIPs (#499)
* fix: Allow set externalIPs This pull request allows to set externalIPs for external-service * Update README.md * add documentation entry in values.yaml --------- Co-authored-by: Andrii Shestakov <[email protected]>
1 parent 8ab8da7 commit b30a1a3

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

charts/mailu/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ helm uninstall mailu --namespace=mailu-mailserver
328328
| `front.externalService.enabled` | Expose front mail ports via external service (ClusterIP or LoadBalancer) | `false` |
329329
| `front.externalService.type` | Service type (ClusterIP or LoadBalancer) | `ClusterIP` |
330330
| `front.externalService.externalTrafficPolicy` | Service externalTrafficPolicy (Cluster or Local) | `Local` |
331+
| `front.externalService.externalIPs` | Service externalIPs | `[]` |
331332
| `front.externalService.loadBalancerIP` | Service loadBalancerIP | `""` |
332333
| `front.externalService.annotations` | Service annotations | `{}` |
333334
| `front.externalService.labels` | Service labels | `{}` |

charts/mailu/templates/front/service-external.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
{{- if .loadBalancerIP }}
2828
loadBalancerIP: {{ .loadBalancerIP }}
2929
{{- end }}
30+
{{- if .externalIPs }}
31+
externalIPs:
32+
{{- toYaml .externalIPs | nindent 4 }}
33+
{{- end }}
3034
ports:
3135
{{- if .ports.pop3 }}
3236
- name: pop3

charts/mailu/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ front:
719719
## @param front.externalService.enabled Expose front mail ports via external service (ClusterIP or LoadBalancer)
720720
## @param front.externalService.type Service type (ClusterIP or LoadBalancer)
721721
## @param front.externalService.externalTrafficPolicy Service externalTrafficPolicy (Cluster or Local)
722+
## @param front.externalService.externalIPs Service externalIPs
722723
## @param front.externalService.loadBalancerIP Service loadBalancerIP
723724
## @param front.externalService.annotations Service annotations
724725
## @param front.externalService.labels Service labels
@@ -745,6 +746,7 @@ front:
745746
## type: LoadBalancer
746747
loadBalancerIP: ""
747748
externalTrafficPolicy: Local
749+
externalIPs: []
748750
annotations: {}
749751
labels: {}
750752
ports:

0 commit comments

Comments
 (0)