code: def _get_deployment_with_env_secret(
      deployment: Dict, params: Dict
  ) -> Dict:
      for k, v in params["env_from_secret"].items():
          env_var = {
              "name": k,
              "valueFrom": {
                  "secretKeyRef": {"name": v["name"], "key": v["key"]}
              },
          }
  
          deployment["spec"]["template"]["spec"]["containers"][0][
              "env"
          ].append(env_var)
  
      return deployment
  
file_path: jina/jina/orchestrate/deployments/config/k8slib/kubernetes_tools.py
imports: import os
  from typing import Dict
label_desc: Use image node_id 6 for calling a global function with example usage: _get_deployment_with_env_secret(deployment, params) and returns: deployment