remove statefulset label added to wrong branch

This commit is contained in:
Daniel Vega-Myhre 2023-07-13 21:07:17 +00:00
parent 1ae60c0ed1
commit a1a5f49bb9
2 changed files with 1 additions and 2 deletions

View File

@ -298,7 +298,7 @@ func addCompletionIndexEnvVariable(container *v1.Container) {
Name: completionIndexEnvName,
ValueFrom: &v1.EnvVarSource{
FieldRef: &v1.ObjectFieldSelector{
FieldPath: fmt.Sprintf("metadata.annotations['%s']", batch.JobCompletionIndexAnnotation),
FieldPath: fmt.Sprintf("metadata.labels['%s']", batch.JobCompletionIndexAnnotation),
},
},
})

View File

@ -29,7 +29,6 @@ const (
DeprecatedRollbackTo = "deprecated.deployment.rollback.to"
DeprecatedTemplateGeneration = "deprecated.daemonset.template.generation"
StatefulSetPodNameLabel = "statefulset.kubernetes.io/pod-name"
StatefulSetPodIndexLabel = "statefulset.kubernetes.io/pod-index"
)
// +genclient