async fn env_vars(
        &self,
        client: APIClient,
        container: &Container,
        pod: &Pod,
    ) -> HashMap<String, String> {
        let mut env = HashMap::new();
        let ns = pod
            .metadata
            .as_ref()
            .and_then(|s| s.namespace.as_deref())
            .unwrap_or("default");
        let empty = Vec::new();
        for env_var in container.env.as_ref().unwrap_or_else(|| &empty).iter() {
            let key = env_var.name.clone();
            let value = match env_var.value.clone() {
                Some(v) => v,
                None => on_missing_value(client.clone(), env_var, ns, &field_map(pod)).await,
            };
            env.insert(key, value);
        }
        env
    }
/// Resolve the environment variables for a container.
///
/// This generally should not be overwritten unless you need to handle
/// environment variable resolution in a special way, such as allowing
/// custom Downward API fields.
///
/// It is safe to call from within your own providers.
///
/// TODO: Finish secrets, configmaps, and resource fields
Resolve the environment variables for a container.
This generally should not be overwritten unless you need to handle
environment variable resolution in a special way, such as allowing
custom Downward API fields.

It is safe to call from within your own providers.

Finish secrets, configmaps, and resource fields
Resolve the environment variables for a container . This generally should not be overwritten unless you need to handle environment variable resolution in a special way such as allowing custom Downward API fields . It is safe to call from within your own providers . Finish secrets configmaps and resource fields
async fn env_vars(
        &self,
        client: APIClient,
        container: &Container,
        pod: &Pod,
    ) -> HashMap<String, String> {
        let mut env = HashMap::new();
        let ns = pod
            .metadata
            .as_ref()
            .and_then(|s| s.namespace.as_deref())
            .unwrap_or("default");
        let empty = Vec::new();
        for env_var in container.env.as_ref().unwrap_or_else(|| &empty).iter() {
            let key = env_var.name.clone();
            let value = match env_var.value.clone() {
                Some(v) => v,
                None => on_missing_value(client.clone(), env_var, ns, &field_map(pod)).await,
            };
            env.insert(key, value);
        }
        env
    }
async fn env_vars ( & self , client : APIClient , container : & Container , pod : & Pod , ) -> HashMap < String , String > { let mut env = HashMap :: new ( ) ; let ns = pod . metadata . as_ref ( ) . and_then ( | s | s . namespace . as_deref ( ) ) . unwrap_or ( " " ) ; let empty = Vec :: new ( ) ; for env_var in container . env . as_ref ( ) . unwrap_or_else ( | | & empty ) . iter ( ) { let key = env_var . name . clone ( ) ; let value = match env_var . value . clone ( ) { Some ( v ) => v , None => on_missing_value ( client . clone ( ) , env_var , ns , & field_map ( pod ) ) . await , } ; env . insert ( key , value ) ; } env }
Resolve the environment variables for a container.
Resolve the environment variables for a container .
&self
client
APIClient
container
&Container
pod
&Pod
&self
client
APIClient
container
&Container
pod
&Pod