kubernetes_asyncio.client.models.v1_pod_failure_policy 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.V1PodFailurePolicy(rules=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.
- attribute_map = {'rules': 'rules'}
- openapi_types = {'rules': 'list[V1PodFailurePolicyRule]'}
- property rules
Gets the rules of this V1PodFailurePolicy. # noqa: E501
A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. # noqa: E501
- Returns:
The rules of this V1PodFailurePolicy. # noqa: E501
- Return type:
list[V1PodFailurePolicyRule]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model