Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for succeededCount (0.17 sec)

  1. pkg/controller/job/success_policy_test.go

    					SucceededIndexes: ptr.To("3"),
    				}},
    			},
    		},
    		"rules.succeededCount is specified; succeededIndexes matched rules": {
    			enableJobSuccessPolicy: true,
    			completions:            10,
    			succeededIndexes:       orderedIntervals{{0, 2}},
    			successPolicy: &batch.SuccessPolicy{
    				Rules: []batch.SuccessPolicyRule{{
    					SucceededCount: ptr.To[int32](2),
    				}},
    			},
    			wantMessage:          "Matched rules at index 0",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/client-go/applyconfigurations/batch/v1/successpolicyrule.go

    // with apply.
    type SuccessPolicyRuleApplyConfiguration struct {
    	SucceededIndexes *string `json:"succeededIndexes,omitempty"`
    	SucceededCount   *int32  `json:"succeededCount,omitempty"`
    }
    
    // SuccessPolicyRuleApplyConfiguration constructs an declarative configuration of the SuccessPolicyRule type for use with
    // apply.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. pkg/controller/job/success_policy.go

    			if len(requiredIndexes) == 0 {
    				continue
    			}
    			if matchSucceededIndexesRule(requiredIndexes, succeededIndexes, rule.SucceededCount) {
    				return fmt.Sprintf("%s %d", rulesMatchedMsg, index), true
    			}
    		} else if rule.SucceededCount != nil && succeededIndexes.total() >= int(*rule.SucceededCount) {
    			return fmt.Sprintf("%s %d", rulesMatchedMsg, index), true
    		}
    	}
    	return "", false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. pkg/apis/batch/validation/validation.go

    		}
    	}
    	if rule.SucceededCount != nil {
    		succeededCountPath := rulePath.Child("succeededCount")
    		allErrs = append(allErrs, apivalidation.ValidateNonnegativeField(int64(*rule.SucceededCount), succeededCountPath)...)
    		if *rule.SucceededCount > *spec.Completions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/batch/v1/zz_generated.deepcopy.go

    	*out = *in
    	if in.SucceededIndexes != nil {
    		in, out := &in.SucceededIndexes, &out.SucceededIndexes
    		*out = new(string)
    		**out = **in
    	}
    	if in.SucceededCount != nil {
    		in, out := &in.SucceededCount, &out.SucceededCount
    		*out = new(int32)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuccessPolicyRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/batch/v1/types.go

    	// succeededCount specifies the minimal required size of the actual set of the succeeded indexes
    	// for the Job. When succeededCount is used along with succeededIndexes, the check is
    	// constrained only to the set of indexes specified by succeededIndexes.
    	// For example, given that succeededIndexes is "1-4", succeededCount is "3",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 40.6K bytes
    - Viewed (0)
  7. pkg/apis/batch/zz_generated.deepcopy.go

    	*out = *in
    	if in.SucceededIndexes != nil {
    		in, out := &in.SucceededIndexes, &out.SucceededIndexes
    		*out = new(string)
    		**out = **in
    	}
    	if in.SucceededCount != nil {
    		in, out := &in.SucceededCount, &out.SucceededCount
    		*out = new(int32)
    		**out = **in
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SuccessPolicyRule.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. pkg/apis/batch/v1/zz_generated.conversion.go

    	out.SucceededIndexes = (*string)(unsafe.Pointer(in.SucceededIndexes))
    	out.SucceededCount = (*int32)(unsafe.Pointer(in.SucceededCount))
    	return nil
    }
    
    // Convert_v1_SuccessPolicyRule_To_batch_SuccessPolicyRule is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 36.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/batch/v1/types_swagger_doc_generated.go

    	"succeededCount":   "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/batch/v1/generated.proto

      // +optional
      optional string succeededIndexes = 1;
    
      // succeededCount specifies the minimal required size of the actual set of the succeeded indexes
      // for the Job. When succeededCount is used along with succeededIndexes, the check is
      // constrained only to the set of indexes specified by succeededIndexes.
      // For example, given that succeededIndexes is "1-4", succeededCount is "3",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 12:01:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top