diff --git a/resolwe/flow/managers/workload_connectors/kubernetes.py b/resolwe/flow/managers/workload_connectors/kubernetes.py index 700d86057..0cd061a96 100644 --- a/resolwe/flow/managers/workload_connectors/kubernetes.py +++ b/resolwe/flow/managers/workload_connectors/kubernetes.py @@ -808,14 +808,7 @@ def start(self, data: Data, listener_connection: Tuple[str, str, str]): "securityContext": {"privileged": True}, "volumeMounts": self._init_container_mountpoints(), "env": container_environment, - "env_from": [ - { - "secret_ref": { - "name": secrets_name, - "optional": False, - } - } - ], + "envFrom": [{"secretRef": {"name": secrets_name}}], }, ], "containers": [ @@ -845,14 +838,7 @@ def start(self, data: Data, listener_connection: Tuple[str, str, str]): }, "securityContext": security_context, "env": container_environment, - "env_from": [ - { - "secret_ref": { - "name": secrets_name, - "optional": False, - } - } - ], + "envFrom": [{"secretRef": {"name": secrets_name}}], "command": ["/usr/local/bin/python3"], "args": ["/startup.py"], "volumeMounts": self._communicator_mountpoints(