Commit 281d54bb authored by sonicaj's avatar sonicaj Committed by Waqar Ahmed

Update stable train from test train

parent 6776dadd
...@@ -15,7 +15,7 @@ type: application ...@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2107.0.0 version: 2108.0.0
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to
......
...@@ -299,6 +299,7 @@ questions: ...@@ -299,6 +299,7 @@ questions:
schema: schema:
type: boolean type: boolean
default: false default: false
show_if: [["externalInterfaces", "=", []]]
- variable: hostPortsList - variable: hostPortsList
label: "Specify host ports for the workload" label: "Specify host ports for the workload"
......
...@@ -8,3 +8,16 @@ dnsConfig: ...@@ -8,3 +8,16 @@ dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 2 }} {{- toYaml .Values.dnsConfig | nindent 2 }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{/*
Get configuration for host network
*/}}
{{- define "hostNetworkingConfiguration" -}}
{{- $host := default false .Values.hostNetwork -}}
{{- if or .Values.externalInterfaces (eq $host false) -}}
{{- print "false" -}}
{{- else -}}
{{- print "true" -}}
{{- end -}}
{{- end -}}
...@@ -51,7 +51,7 @@ Pod specification ...@@ -51,7 +51,7 @@ Pod specification
*/}} */}}
{{- define "podSepc" }} {{- define "podSepc" }}
restartPolicy: {{ template "restartPolicy" . }} restartPolicy: {{ template "restartPolicy" . }}
hostNetwork: {{ .Values.hostNetwork }} hostNetwork: {{ template "hostNetworkingConfiguration" . }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
{{- include "volumeMountsConfiguration" . | indent 2}} {{- include "volumeMountsConfiguration" . | indent 2}}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment