Explorar el Código

chore: remove lifecycle preStop because sh not exist in scratch (#2042)

Kevin Wan hace 2 años
padre
commit
38cd7b7df0
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  1. 1 5
      tools/goctl/kube/deployment.tpl

+ 1 - 5
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: