mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Mark Job onPodConditions as optional in pod failure policy
This commit is contained in:
		
							
								
								
									
										3
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							@@ -4455,8 +4455,7 @@
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "required": [
 | 
			
		||||
        "action",
 | 
			
		||||
        "onPodConditions"
 | 
			
		||||
        "action"
 | 
			
		||||
      ],
 | 
			
		||||
      "type": "object"
 | 
			
		||||
    },
 | 
			
		||||
 
 | 
			
		||||
@@ -608,8 +608,7 @@
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        "required": [
 | 
			
		||||
          "action",
 | 
			
		||||
          "onPodConditions"
 | 
			
		||||
          "action"
 | 
			
		||||
        ],
 | 
			
		||||
        "type": "object"
 | 
			
		||||
      },
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							@@ -15915,7 +15915,7 @@ func schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref common.ReferenceCallback
 | 
			
		||||
						},
 | 
			
		||||
					},
 | 
			
		||||
				},
 | 
			
		||||
				Required: []string{"action", "onPodConditions"},
 | 
			
		||||
				Required: []string{"action"},
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
		Dependencies: []string{
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user