Fix upgrades

Change-Id: I18822a3bbc1a99605affbb667c17c3af53622ee7
This commit is contained in:
Andrey Pavlov 2017-03-14 23:05:30 +04:00
parent 154836c142
commit f83c2f1aa7
1 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ def _create_nodes_configmap(nodes):
def _create_service_configmap(service_name, service_config):
configmap_name = "%s-%s" % (service_name, templates.SERVICE_CONFIG)
data = {templates.SERVICE_CONFIG: service_config._json()}
data = {templates.SERVICE_CONFIG: service_config._json(sort_keys=True)}
template = templates.serialize_configmap(configmap_name, data)
return kubernetes.process_object(template)
@ -574,7 +574,7 @@ def create_upgrade_jobs(component_name, upgrade_data, configmaps, topology,
"exports_ctx": exports_ctx,
}
_create_meta_configmap(service)
_create_service_configmap(prefix)
_create_service_configmap(prefix, _yaml.AttrDict())
workflows = {prefix: ""}
jobs = container["pre"]