kubernetes_asyncio.client.models.v1_pod_failure_policy_rule module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_pod_failure_policy_rule.V1PodFailurePolicyRule(action=None, on_exit_codes=None, on_pod_conditions=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- property action
Gets the action of this V1PodFailurePolicyRule. # noqa: E501
Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: - FailJob: indicates that the pod’s job is marked as Failed and all running pods are terminated. - FailIndex: indicates that the pod’s index is marked as Failed and will not be restarted. - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. # noqa: E501
- Returns:
The action of this V1PodFailurePolicyRule. # noqa: E501
- Return type:
str
- attribute_map = {'action': 'action', 'on_exit_codes': 'onExitCodes', 'on_pod_conditions': 'onPodConditions'}
- property on_exit_codes
Gets the on_exit_codes of this V1PodFailurePolicyRule. # noqa: E501
- Returns:
The on_exit_codes of this V1PodFailurePolicyRule. # noqa: E501
- Return type:
- property on_pod_conditions
Gets the on_pod_conditions of this V1PodFailurePolicyRule. # noqa: E501
Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. # noqa: E501
- Returns:
The on_pod_conditions of this V1PodFailurePolicyRule. # noqa: E501
- Return type:
- openapi_types = {'action': 'str', 'on_exit_codes': 'V1PodFailurePolicyOnExitCodesRequirement', 'on_pod_conditions': 'list[V1PodFailurePolicyOnPodConditionsPattern]'}
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model