diff --git a/staging/javaweb-tomcat-sidecar/javaweb-2.yaml b/staging/javaweb-tomcat-sidecar/javaweb-2.yaml index 283a13b78..82cabcac9 100644 --- a/staging/javaweb-tomcat-sidecar/javaweb-2.yaml +++ b/staging/javaweb-tomcat-sidecar/javaweb-2.yaml @@ -6,10 +6,7 @@ spec: initContainers: - image: resouer/sample:v2 name: war - command: - - "cp" - - "/sample.war" - - "/app" + command: ["cp", "/sample.war", "/app"] volumeMounts: - mountPath: /app name: app-volume diff --git a/staging/javaweb-tomcat-sidecar/javaweb.yaml b/staging/javaweb-tomcat-sidecar/javaweb.yaml index 578f291df..e5360602a 100644 --- a/staging/javaweb-tomcat-sidecar/javaweb.yaml +++ b/staging/javaweb-tomcat-sidecar/javaweb.yaml @@ -6,6 +6,7 @@ spec: initContainers: - image: resouer/sample:v1 name: war + command: ["cp", "/sample.war", "/app"] volumeMounts: - mountPath: /app name: app-volume