Merge "Allow 50% unavailable nodes if upgrading DaemonSet kind"

This commit is contained in:
Jenkins 2016-12-28 09:09:40 +00:00 committed by Gerrit Code Review
commit 821952595d
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ def parse_role(component, topology, configmaps, jinja_imports):
"implemented using Kubernetes DaemonSet")
replicas = len(set(topology[service_name]))
if strategy['type'] == 'RollingUpdate':
strategy['rollingUpdate'] = {'maxSurge': 0, 'maxUnavailable': 1}
strategy['rollingUpdate'] = {'maxSurge': 0,
'maxUnavailable': '50%'}
else:
replicas = replicas or 1