@@ -174,7 +174,7 @@ type PodFailurePolicyOnExitCodesRequirement struct {
174
174
// When specified, it should match one the container or initContainer
175
175
// names in the pod template.
176
176
// +optional
177
- ContainerName * string `json:"containerName" protobuf:"bytes,1,opt,name=containerName"`
177
+ ContainerName * string `json:"containerName,omitempty " protobuf:"bytes,1,opt,name=containerName"`
178
178
179
179
// Represents the relationship between the container exit code(s) and the
180
180
// specified values. Containers completed with success (exit code 0) are
@@ -234,14 +234,14 @@ type PodFailurePolicyRule struct {
234
234
235
235
// Represents the requirement on the container exit codes.
236
236
// +optional
237
- OnExitCodes * PodFailurePolicyOnExitCodesRequirement `json:"onExitCodes" protobuf:"bytes,2,opt,name=onExitCodes"`
237
+ OnExitCodes * PodFailurePolicyOnExitCodesRequirement `json:"onExitCodes,omitempty " protobuf:"bytes,2,opt,name=onExitCodes"`
238
238
239
239
// Represents the requirement on the pod conditions. The requirement is represented
240
240
// as a list of pod condition patterns. The requirement is satisfied if at
241
241
// least one pattern matches an actual pod condition. At most 20 elements are allowed.
242
242
// +listType=atomic
243
243
// +optional
244
- OnPodConditions []PodFailurePolicyOnPodConditionsPattern `json:"onPodConditions" protobuf:"bytes,3,opt,name=onPodConditions"`
244
+ OnPodConditions []PodFailurePolicyOnPodConditionsPattern `json:"onPodConditions,omitempty " protobuf:"bytes,3,opt,name=onPodConditions"`
245
245
}
246
246
247
247
// PodFailurePolicy describes how failed pods influence the backoffLimit.
0 commit comments