Do not use the job template labels as the default job selector
@@ -62,10 +62,6 @@ func (in *Trial) GetJobSelector() *metav1.LabelSelector {
return in.Spec.Selector
}
- if in.Spec.JobTemplate != nil && len(in.Spec.JobTemplate.Labels) > 0 {
- return &metav1.LabelSelector{MatchLabels: in.Spec.JobTemplate.Labels}
- }
-
return &metav1.LabelSelector{
MatchLabels: map[string]string{
LabelTrial: in.Name,
