kubernetes_asyncio.client.models.v1_success_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_success_policy.V1SuccessPolicy(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[V1SuccessPolicyRule]'}
- property rules
Gets the rules of this V1SuccessPolicy. # noqa: E501
rules represents the list of alternative rules for the declaring the Jobs as successful before .status.succeeded >= .spec.completions. Once any of the rules are met, the “SuccessCriteriaMet” condition is added, and the lingering pods are removed. The terminal state for such a Job has the “Complete” condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. # noqa: E501
- Returns:
The rules of this V1SuccessPolicy. # noqa: E501
- Return type:
list[V1SuccessPolicyRule]
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model