Skip to content

Commit

Permalink
feat: (payments-worker) update payments v3 container names
Browse files Browse the repository at this point in the history
  • Loading branch information
laouji committed Dec 23, 2024
1 parent 728fc87 commit 3702997
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/resources/payments/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ func createFullDeployment(ctx core.Context, stack *v1beta1.Stack,
return err
}

containerName := "api"
appOpts := applications.WithProbePath("/_health")
if v3 {
containerName = "payments-api"
appOpts = applications.WithProbePath("/_healthcheck")

err := createWorkerDeployment(ctx, stack, payments, database, image, env, appOpts)
Expand All @@ -213,7 +215,7 @@ func createFullDeployment(ctx core.Context, stack *v1beta1.Stack,
Spec: v1.PodSpec{
ServiceAccountName: serviceAccountName,
Containers: []v1.Container{{
Name: "api",
Name: containerName,
Args: []string{"serve"},
Env: env,
Image: image,
Expand Down Expand Up @@ -258,7 +260,7 @@ func createWorkerDeployment(
Spec: v1.PodSpec{
ServiceAccountName: serviceAccountName,
Containers: []v1.Container{{
Name: "api",
Name: "payments-worker",
Args: []string{"worker"},
Env: env,
Image: image,
Expand Down

0 comments on commit 3702997

Please sign in to comment.