fix: bug pod service without label service (#3256)

This commit is contained in:
Elias 2024-01-23 03:42:47 -03:00 committed by GitHub
parent c8fa71874a
commit 1c3159ebb7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,6 +80,10 @@ func podMeta(step *types.Step, config *config, podName string) metav1.ObjectMeta
}
meta.Labels[StepLabel] = step.Name
if step.Type == types.StepTypeService {
meta.Labels[ServiceLabel] = step.Name
}
meta.Annotations = config.PodAnnotations
if meta.Annotations == nil {
meta.Annotations = make(map[string]string)