Skip to content

Commit

Permalink
Merge pull request deis#806 from helgi/update_secrets
Browse files Browse the repository at this point in the history
fix(secrets): update env secrets if they already exists (overwrites existing values)
  • Loading branch information
helgi committed Jun 9, 2016
2 parents b7a4582 + 09b9be2 commit 9d98a79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rootfs/scheduler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,8 @@ def _set_container(self, namespace, data, **kwargs): # noqa
'type': 'env'
}
self._create_secret(namespace, secret_name, secrets_env, labels=labels)
else:
self._update_secret(namespace, secret_name, secrets_env)

for key in env.keys():
item = {
Expand Down

0 comments on commit 9d98a79

Please sign in to comment.