Skip to content

Commit

Permalink
fix: bug pod service without label service (#3256)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasscosta authored Jan 23, 2024
1 parent c8fa718 commit 1c3159e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipeline/backend/kubernetes/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1c3159e

Please sign in to comment.