pub trait EnvVarExt {
    fn value(name: impl ToString, value: impl ToString) -> Self;
    fn metadata_name(name: impl ToString) -> Self;
    fn metadata_namespace(name: impl ToString) -> Self;
    fn metadata_uid(name: impl ToString) -> Self;
    fn spec_nodename(name: impl ToString) -> Self;
    fn spec_service_account_name(name: impl ToString) -> Self;
    fn status_host_ip(name: impl ToString) -> Self;
    fn status_pod_ip(name: impl ToString) -> Self;
    fn status_pod_ips(name: impl ToString) -> Self;
    fn field_ref(name: impl ToString, field_path: impl ToString) -> Self;
}
Expand description

Builders for corev1::EnvVar objects

Required Methods

Set an env var name with a given value

Set an env var name that points to a pod’s name

Set an env var name that points to the node which this pod was requested to scheduled on

Set an env var name that points to the requested ServiceAccountName for this pod

Set an env var name that points to the selected field in the pod

Implementors