diff --git a/rootfs/scheduler/__init__.py b/rootfs/scheduler/__init__.py index b9b07ed7f..360753660 100644 --- a/rootfs/scheduler/__init__.py +++ b/rootfs/scheduler/__init__.py @@ -1209,6 +1209,9 @@ def get_secret(self, namespace, name): # decode the base64 data secrets = response.json() for key, value in secrets['data'].items(): + if value is None: + secrets['data'][key] = "" + continue value = base64.b64decode(value) value = value if isinstance(value, bytes) else bytes(value, 'UTF-8') secrets['data'][key] = value.decode(encoding='UTF-8')