Merge pull request #120204 from mimowo/make-onpodconditions-optional

Mark Job onPodConditions as optional in pod failure policy
This commit is contained in:
Kubernetes Prow Robot 2023-08-28 09:47:42 -07:00 committed by GitHub
commit a3374795e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 5 deletions

View File

@ -4455,8 +4455,7 @@
}
},
"required": [
"action",
"onPodConditions"
"action"
],
"type": "object"
},

View File

@ -608,8 +608,7 @@
}
},
"required": [
"action",
"onPodConditions"
"action"
],
"type": "object"
},

View File

@ -241,6 +241,7 @@ type PodFailurePolicyRule struct {
// 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.
// +listType=atomic
// +optional
OnPodConditions []PodFailurePolicyOnPodConditionsPattern
}

View File

@ -15915,7 +15915,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref common.ReferenceCallback
},
},
},
Required: []string{"action", "onPodConditions"},
Required: []string{"action"},
},
},
Dependencies: []string{

View File

@ -530,6 +530,7 @@ message PodFailurePolicyRule {
// 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.
// +listType=atomic
// +optional
repeated PodFailurePolicyOnPodConditionsPattern onPodConditions = 3;
}

View File

@ -236,6 +236,7 @@ type PodFailurePolicyRule struct {
// 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.
// +listType=atomic
// +optional
OnPodConditions []PodFailurePolicyOnPodConditionsPattern `json:"onPodConditions" protobuf:"bytes,3,opt,name=onPodConditions"`
}