Bläddra i källkod

Make sure hostports are not used when update strategy is rolling update

Waqar Ahmed 4 år sedan
förälder
incheckning
211640ef12

+ 0 - 0
test/ix-chart/2010.0.2/.helmignore → test/ix-chart/2012.0.0/.helmignore


+ 1 - 1
test/ix-chart/2010.0.2/Chart.yaml → test/ix-chart/2012.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: 2010.0.2
+version: 2012.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

+ 0 - 0
test/ix-chart/2010.0.2/README.md → test/ix-chart/2012.0.0/README.md


+ 0 - 0
test/ix-chart/2010.0.2/app-readme.md → test/ix-chart/2012.0.0/app-readme.md


+ 0 - 0
test/ix-chart/2010.0.2/questions.yaml → test/ix-chart/2012.0.0/questions.yaml


+ 0 - 0
test/ix-chart/2010.0.2/templates/NOTES.txt → test/ix-chart/2012.0.0/templates/NOTES.txt


+ 0 - 0
test/ix-chart/2010.0.2/templates/_containers.tpl → test/ix-chart/2012.0.0/templates/_containers.tpl


+ 0 - 0
test/ix-chart/2010.0.2/templates/_helpers.tpl → test/ix-chart/2012.0.0/templates/_helpers.tpl


+ 0 - 0
test/ix-chart/2010.0.2/templates/_networking.tpl → test/ix-chart/2012.0.0/templates/_networking.tpl


+ 0 - 0
test/ix-chart/2010.0.2/templates/_volumes.tpl → test/ix-chart/2012.0.0/templates/_volumes.tpl


+ 3 - 0
test/ix-chart/2010.0.2/templates/_workload.tpl → test/ix-chart/2012.0.0/templates/_workload.tpl

@@ -96,6 +96,9 @@ Deployment Spec
 */}}
 {{- define "deploymentSpec" }}
 strategy:
+  {{- if and (eq .Values.updateStrategy "RollingUpdate") .Values.hostPortsList }}
+  {{- fail "RollingUpdate is not allowed when host ports are specified" }}
+  {{- end }}
   type: {{ .Values.updateStrategy }}
 selector:
   matchLabels:

+ 0 - 0
test/ix-chart/2010.0.2/templates/external-interfaces.yaml → test/ix-chart/2012.0.0/templates/external-interfaces.yaml


+ 0 - 0
test/ix-chart/2010.0.2/templates/service.yaml → test/ix-chart/2012.0.0/templates/service.yaml


+ 0 - 0
test/ix-chart/2010.0.2/templates/tests/deployment-check.yaml → test/ix-chart/2012.0.0/templates/tests/deployment-check.yaml


+ 0 - 0
test/ix-chart/2010.0.2/templates/workload.yaml → test/ix-chart/2012.0.0/templates/workload.yaml


+ 0 - 0
test/ix-chart/2010.0.2/test_values.yaml → test/ix-chart/2012.0.0/test_values.yaml


+ 0 - 0
test/ix-chart/2010.0.2/values.yaml → test/ix-chart/2012.0.0/values.yaml