mirror of
https://github.com/truenas/charts.git
synced 2026-10-28 08:04:38 +00:00
Add validation to avoid hostnetwork=true + RollingUpdate co-existance on a deployment.
This commit is contained in:
Binary file not shown.
@@ -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: 2111.0.0
|
||||
version: 2111.0.1
|
||||
|
||||
# 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
|
||||
Binary file not shown.
+2
@@ -102,6 +102,8 @@ Deployment Spec
|
||||
strategy:
|
||||
{{- if and (eq .Values.updateStrategy "RollingUpdate") .Values.hostPortsList }}
|
||||
{{- fail "RollingUpdate is not allowed when host ports are specified" }}
|
||||
{{- else if and (eq .Values.updateStrategy "RollingUpdate") .Values.hostNetwork }}
|
||||
{{- fail "RollingUpdate is not allowed when host network is enabled" }}
|
||||
{{- end }}
|
||||
type: {{ .Values.updateStrategy }}
|
||||
selector:
|
||||
Reference in New Issue
Block a user