Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.32 KB

File metadata and controls

28 lines (21 loc) · 1.32 KB

V1ExecAction

ExecAction describes a "run in container" action.

Properties

Name Type Description Notes
command List[str] Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions (' ', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

Example

from kubernetes.client.models.v1_exec_action import V1ExecAction

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

# convert the object into a dict
v1_exec_action_dict = v1_exec_action_instance.to_dict()
# create an instance of V1ExecAction from a dict
v1_exec_action_from_dict = V1ExecAction.from_dict(v1_exec_action_dict)

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