Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addCompletionIndexAnnotation (0.25 sec)

  1. pkg/controller/job/indexed_job_utils.go

    		Name: completionIndexEnvName,
    		ValueFrom: &v1.EnvVarSource{
    			FieldRef: &v1.ObjectFieldSelector{
    				FieldPath: fieldPath,
    			},
    		},
    	})
    }
    
    func addCompletionIndexAnnotation(template *v1.PodTemplateSpec, index int) {
    	if template.Annotations == nil {
    		template.Annotations = make(map[string]string, 1)
    	}
    	template.Annotations[batch.JobCompletionIndexAnnotation] = strconv.Itoa(index)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    				}
    				go func() {
    					template := podTemplate
    					generateName := ""
    					if completionIndex != unknownCompletionIndex {
    						template = podTemplate.DeepCopy()
    						addCompletionIndexAnnotation(template, completionIndex)
    
    						if feature.DefaultFeatureGate.Enabled(features.PodIndexLabel) {
    							addCompletionIndexLabel(template, completionIndex)
    						}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
Back to top