From 37b4561be4007f921aab6e26fc6e4f538628d1ee Mon Sep 17 00:00:00 2001 From: Michal Wozniak Date: Mon, 28 Aug 2023 11:42:56 +0200 Subject: [PATCH] Mark Job onPodConditions as optional in pod failure policy Kubernetes-commit: fc184558921a4462da6dadb9b64a2baa1782d510 --- batch/v1/generated.proto | 1 + batch/v1/types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/batch/v1/generated.proto b/batch/v1/generated.proto index e1bef3a463..4f0822440f 100644 --- a/batch/v1/generated.proto +++ b/batch/v1/generated.proto @@ -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; } diff --git a/batch/v1/types.go b/batch/v1/types.go index 883d193aae..8a28614c0b 100644 --- a/batch/v1/types.go +++ b/batch/v1/types.go @@ -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"` }