From 09b9be2c38435d91fda11d8c3bcb7df10b8acaee Mon Sep 17 00:00:00 2001 From: helgi Date: Wed, 8 Jun 2016 17:06:40 -0700 Subject: [PATCH] fix(secrets): update env secrets if they already exists (overwrites existing values) In some cases when a release is cleaned up an orphaned secret env is left behind. This will overwrite any orphaned ones. --- rootfs/scheduler/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootfs/scheduler/__init__.py b/rootfs/scheduler/__init__.py index 6fae71687..dc3df15f2 100644 --- a/rootfs/scheduler/__init__.py +++ b/rootfs/scheduler/__init__.py @@ -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 = {