Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.58 KB

File metadata and controls

30 lines (23 loc) · 1.58 KB

V1EnvVar

EnvVar represents an environment variable present in a Container.

Properties

Name Type Description Notes
name str Name of the environment variable. May consist of any printable ASCII characters except '='.
value str Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". [optional]
value_from V1EnvVarSource [optional]

Example

from kubernetes.client.models.v1_env_var import V1EnvVar

# TODO update the JSON string below
json = "{}"
# create an instance of V1EnvVar from a JSON string
v1_env_var_instance = V1EnvVar.from_json(json)
# print the JSON string representation of the object
print(V1EnvVar.to_json())

# convert the object into a dict
v1_env_var_dict = v1_env_var_instance.to_dict()
# create an instance of V1EnvVar from a dict
v1_env_var_from_dict = V1EnvVar.from_dict(v1_env_var_dict)

[Back to Model list] [Back to API list] [Back to README]