Skip to content

Commit

Permalink
Using stepToPodName
Browse files Browse the repository at this point in the history
  • Loading branch information
zc-devs committed Jan 20, 2024
1 parent e45a732 commit 7f7e628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipeline/backend/kubernetes/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ func mapToEnvVars(m map[string]string) []v1.EnvVar {
}

func startPod(ctx context.Context, engine *kube, step *types.Step) (*v1.Pod, error) {
podName, err := podName(step)
podName, err := stepToPodName(step)
if err != nil {
return nil, err
}
Expand All @@ -457,7 +457,7 @@ func startPod(ctx context.Context, engine *kube, step *types.Step) (*v1.Pod, err
}

func stopPod(ctx context.Context, engine *kube, step *types.Step, deleteOpts metav1.DeleteOptions) error {
podName, err := podName(step)
podName, err := stepToPodName(step)
if err != nil {
return err
}
Expand Down

0 comments on commit 7f7e628

Please sign in to comment.