Skip to content

Commit

Permalink
feat: add dnsPolicy support to Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjo committed Nov 24, 2024
1 parent ca4bc59 commit 7e76ceb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ spec:
dnsConfig:
{{ toYaml .Values.deployment.dnsConfig | indent 8 }}
{{- end }}
{{- if .Values.deployment.dnsPolicy }}
dnsPolicy: {{ .Values.deployment.dnsPolicy }}
{{- end }}
{{- if or (.Values.deployment.openshiftOAuthProxy.enabled) (.Values.deployment.volumes) (and (eq .Values.persistence.enabled true) (eq .Values.persistence.mountPVC true) )}}
volumes:
{{- if .Values.deployment.openshiftOAuthProxy.enabled }}
Expand Down
1 change: 1 addition & 0 deletions application/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ deployment:
options:
- name: ndots
value: '1'
dnsPolicy: ClusterFirst
# By default deploymentStrategy is set to rollingUpdate with maxSurge of 25% and maxUnavailable of 25%
# You can change type to `Recreate` or can uncomment `rollingUpdate` specification and adjust them to your usage.
strategy:
Expand Down
3 changes: 3 additions & 0 deletions application/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ deployment:
# options:
# - name: ndots
# value: '1'
# -- (string) DNS Policy.
# @section -- Deployment Parameters
dnsPolicy: ClusterFirst
# -- (object) Startup probe.
# @default -- See below
# Must specify either one of the following field when enabled: httpGet, exec, tcpSocket, grpc
Expand Down

0 comments on commit 7e76ceb

Please sign in to comment.