class_docstr: Defines Kubernetes Secret Volume.
docstr: Read from environment to secret.
docstr_tok: ["Read","from","environment","to","secret","."]
code: def to_env_from_secret(self) -> k8s.V1EnvFromSource:
      """Read from environment to secret."""
      return k8s.V1EnvFromSource(
          secret_ref=k8s.V1SecretEnvSource(name=self.secret)
      )
  
file_path: airflow/airflow/providers/cncf/kubernetes/secret.py
imports: from __future__ import annotations
  import copy
  import uuid
  from kubernetes.client import models
  from airflow.exceptions import AirflowConfigException
  from airflow.providers.cncf.kubernetes.k8s_model import K8SModel
label_desc: Use image node_id 3 for calling the Secret obj's underlying member method code with example usage: obj.to_env_from_secret() and returns: k8s