Skip to content

Commit

Permalink
Add dnsConfig support for admin
Browse files Browse the repository at this point in the history
Signed-off-by: Frédéric Marchand <[email protected]>
  • Loading branch information
uncycler committed Dec 11, 2023
1 parent ee6b866 commit 3fb2bea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mailu/templates/admin/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ spec:
{{- if .Values.admin.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.admin.terminationGracePeriodSeconds }}
{{- end }}
{{- if .Values.admin.dnsPolicy }}
dnsPolicy: {{ .Values.admin.dnsPolicy | quote }}
{{- end }}
{{- if .Values.admin.dnsConfig }}
dnsConfig: {{- include "common.tplvalues.render" (dict "value" .Values.admin.dnsConfig "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.admin.initContainers }}
initContainers: {{- include "common.tplvalues.render" (dict "value" .Values.admin.initContainers "context" $) | nindent 8 }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions mailu/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,14 @@ admin:
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
terminationGracePeriodSeconds: 2

## @param front.dnsPolicy DNS Policy of the front pod (`Default`, `ClusterFirst`, `ClusterFirstWithHostNet` and `None`)
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
dnsPolicy: ""

## @param front.dnsConfig DNS settings for the front pod
## ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
dnsConfig: {}

## @param admin.affinity Affinity for admin pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
Expand Down

0 comments on commit 3fb2bea

Please sign in to comment.