diff --git a/charts/ix-chart/2107.0.0/templates/_networking.tpl b/charts/ix-chart/2107.0.0/templates/_networking.tpl deleted file mode 100644 index 79a1a325d1..0000000000 --- a/charts/ix-chart/2107.0.0/templates/_networking.tpl +++ /dev/null @@ -1,10 +0,0 @@ -{{/* -DNS Configuration -*/}} -{{- define "dnsConfiguration" }} -dnsPolicy: {{ .Values.dnsPolicy }} -{{- if .Values.dnsConfig }} -dnsConfig: - {{- toYaml .Values.dnsConfig | nindent 2 }} -{{- end }} -{{- end }} diff --git a/charts/ix-chart/2107.0.0/.helmignore b/charts/ix-chart/2108.0.0/.helmignore similarity index 100% rename from charts/ix-chart/2107.0.0/.helmignore rename to charts/ix-chart/2108.0.0/.helmignore diff --git a/charts/ix-chart/2107.0.0/Chart.lock b/charts/ix-chart/2108.0.0/Chart.lock similarity index 100% rename from charts/ix-chart/2107.0.0/Chart.lock rename to charts/ix-chart/2108.0.0/Chart.lock diff --git a/charts/ix-chart/2107.0.0/Chart.yaml b/charts/ix-chart/2108.0.0/Chart.yaml similarity index 98% rename from charts/ix-chart/2107.0.0/Chart.yaml rename to charts/ix-chart/2108.0.0/Chart.yaml index fe9117873e..0bf2235be7 100644 --- a/charts/ix-chart/2107.0.0/Chart.yaml +++ b/charts/ix-chart/2108.0.0/Chart.yaml @@ -15,7 +15,7 @@ type: application # 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. # 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 # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/ix-chart/2107.0.0/README.md b/charts/ix-chart/2108.0.0/README.md similarity index 100% rename from charts/ix-chart/2107.0.0/README.md rename to charts/ix-chart/2108.0.0/README.md diff --git a/charts/ix-chart/2107.0.0/app-readme.md b/charts/ix-chart/2108.0.0/app-readme.md similarity index 100% rename from charts/ix-chart/2107.0.0/app-readme.md rename to charts/ix-chart/2108.0.0/app-readme.md diff --git a/charts/ix-chart/2107.0.0/charts/common-2105.0.0.tgz b/charts/ix-chart/2108.0.0/charts/common-2105.0.0.tgz similarity index 100% rename from charts/ix-chart/2107.0.0/charts/common-2105.0.0.tgz rename to charts/ix-chart/2108.0.0/charts/common-2105.0.0.tgz diff --git a/charts/ix-chart/2107.0.0/default_values.yaml b/charts/ix-chart/2108.0.0/default_values.yaml similarity index 100% rename from charts/ix-chart/2107.0.0/default_values.yaml rename to charts/ix-chart/2108.0.0/default_values.yaml diff --git a/charts/ix-chart/2107.0.0/questions.yaml b/charts/ix-chart/2108.0.0/questions.yaml similarity index 99% rename from charts/ix-chart/2107.0.0/questions.yaml rename to charts/ix-chart/2108.0.0/questions.yaml index bf3bcd8656..5c7cd5de79 100644 --- a/charts/ix-chart/2107.0.0/questions.yaml +++ b/charts/ix-chart/2108.0.0/questions.yaml @@ -299,6 +299,7 @@ questions: schema: type: boolean default: false + show_if: [["externalInterfaces", "=", []]] - variable: hostPortsList label: "Specify host ports for the workload" diff --git a/charts/ix-chart/2107.0.0/templates/NOTES.txt b/charts/ix-chart/2108.0.0/templates/NOTES.txt similarity index 100% rename from charts/ix-chart/2107.0.0/templates/NOTES.txt rename to charts/ix-chart/2108.0.0/templates/NOTES.txt diff --git a/charts/ix-chart/2107.0.0/templates/_containers.tpl b/charts/ix-chart/2108.0.0/templates/_containers.tpl similarity index 100% rename from charts/ix-chart/2107.0.0/templates/_containers.tpl rename to charts/ix-chart/2108.0.0/templates/_containers.tpl diff --git a/charts/ix-chart/2107.0.0/templates/_helpers.tpl b/charts/ix-chart/2108.0.0/templates/_helpers.tpl similarity index 100% rename from charts/ix-chart/2107.0.0/templates/_helpers.tpl rename to charts/ix-chart/2108.0.0/templates/_helpers.tpl diff --git a/charts/ix-chart/2108.0.0/templates/_networking.tpl b/charts/ix-chart/2108.0.0/templates/_networking.tpl new file mode 100644 index 0000000000..0c93117cbc --- /dev/null +++ b/charts/ix-chart/2108.0.0/templates/_networking.tpl @@ -0,0 +1,23 @@ +{{/* +DNS Configuration +*/}} +{{- define "dnsConfiguration" }} +dnsPolicy: {{ .Values.dnsPolicy }} +{{- if .Values.dnsConfig }} +dnsConfig: + {{- toYaml .Values.dnsConfig | nindent 2 }} +{{- 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 -}} diff --git a/charts/ix-chart/2107.0.0/templates/_volumes.tpl b/charts/ix-chart/2108.0.0/templates/_volumes.tpl similarity index 100% rename from charts/ix-chart/2107.0.0/templates/_volumes.tpl rename to charts/ix-chart/2108.0.0/templates/_volumes.tpl diff --git a/charts/ix-chart/2107.0.0/templates/_workload.tpl b/charts/ix-chart/2108.0.0/templates/_workload.tpl similarity index 98% rename from charts/ix-chart/2107.0.0/templates/_workload.tpl rename to charts/ix-chart/2108.0.0/templates/_workload.tpl index 344adeda74..6f01bd382f 100644 --- a/charts/ix-chart/2107.0.0/templates/_workload.tpl +++ b/charts/ix-chart/2108.0.0/templates/_workload.tpl @@ -51,7 +51,7 @@ Pod specification */}} {{- define "podSepc" }} restartPolicy: {{ template "restartPolicy" . }} -hostNetwork: {{ .Values.hostNetwork }} +hostNetwork: {{ template "hostNetworkingConfiguration" . }} containers: - name: {{ .Chart.Name }} {{- include "volumeMountsConfiguration" . | indent 2}} diff --git a/charts/ix-chart/2107.0.0/templates/external-interfaces.yaml b/charts/ix-chart/2108.0.0/templates/external-interfaces.yaml similarity index 100% rename from charts/ix-chart/2107.0.0/templates/external-interfaces.yaml rename to charts/ix-chart/2108.0.0/templates/external-interfaces.yaml diff --git a/charts/ix-chart/2107.0.0/templates/service.yaml b/charts/ix-chart/2108.0.0/templates/service.yaml similarity index 100% rename from charts/ix-chart/2107.0.0/templates/service.yaml rename to charts/ix-chart/2108.0.0/templates/service.yaml diff --git a/charts/ix-chart/2107.0.0/templates/tests/deployment-check.yaml b/charts/ix-chart/2108.0.0/templates/tests/deployment-check.yaml similarity index 100% rename from charts/ix-chart/2107.0.0/templates/tests/deployment-check.yaml rename to charts/ix-chart/2108.0.0/templates/tests/deployment-check.yaml diff --git a/charts/ix-chart/2107.0.0/templates/workload.yaml b/charts/ix-chart/2108.0.0/templates/workload.yaml similarity index 100% rename from charts/ix-chart/2107.0.0/templates/workload.yaml rename to charts/ix-chart/2108.0.0/templates/workload.yaml diff --git a/charts/ix-chart/2107.0.0/test_values.yaml b/charts/ix-chart/2108.0.0/test_values.yaml similarity index 100% rename from charts/ix-chart/2107.0.0/test_values.yaml rename to charts/ix-chart/2108.0.0/test_values.yaml diff --git a/charts/ix-chart/2107.0.0/values.yaml b/charts/ix-chart/2108.0.0/values.yaml similarity index 100% rename from charts/ix-chart/2107.0.0/values.yaml rename to charts/ix-chart/2108.0.0/values.yaml