/
v1PodFailurePolicyRule.ts
54 lines (48 loc) · 2.68 KB
/
v1PodFailurePolicyRule.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: release-1.28
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { RequestFile } from './models';
import { V1PodFailurePolicyOnExitCodesRequirement } from './v1PodFailurePolicyOnExitCodesRequirement';
import { V1PodFailurePolicyOnPodConditionsPattern } from './v1PodFailurePolicyOnPodConditionsPattern';
/**
* PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.
*/
export class V1PodFailurePolicyRule {
/**
* 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. This value is alpha-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (disabled by default). - 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.
*/
'action': string;
'onExitCodes'?: V1PodFailurePolicyOnExitCodesRequirement;
/**
* 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.
*/
'onPodConditions'?: Array<V1PodFailurePolicyOnPodConditionsPattern>;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "action",
"baseName": "action",
"type": "string"
},
{
"name": "onExitCodes",
"baseName": "onExitCodes",
"type": "V1PodFailurePolicyOnExitCodesRequirement"
},
{
"name": "onPodConditions",
"baseName": "onPodConditions",
"type": "Array<V1PodFailurePolicyOnPodConditionsPattern>"
} ];
static getAttributeTypeMap() {
return V1PodFailurePolicyRule.attributeTypeMap;
}
}