Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addCompletionIndexAnnotation (0.29 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)
Back to top