From 38cd7b7df016c1355a20c319f9a504aaa9dcf714 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Fri, 24 Jun 2022 21:30:07 +0800 Subject: [PATCH] chore: remove lifecycle preStop because sh not exist in scratch (#2042) --- tools/goctl/kube/deployment.tpl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/goctl/kube/deployment.tpl b/tools/goctl/kube/deployment.tpl index a36a65e3..879b2397 100644 --- a/tools/goctl/kube/deployment.tpl +++ b/tools/goctl/kube/deployment.tpl @@ -21,11 +21,7 @@ spec: - name: {{.Name}} image: {{.Image}} {{if .ImagePullPolicy}}imagePullPolicy: {{.ImagePullPolicy}} - {{end}}lifecycle: - preStop: - exec: - command: ["sh","-c","sleep 5"] - ports: + {{end}}ports: - containerPort: {{.Port}} readinessProbe: tcpSocket: