Change Command Argument to multiple arguments (#6520)
file.sh(see next lines) shows how arguments are passed to the pod #!/bin/bash while : do echo arg1 = $1 arg2 = $2 sleep 10 done In UI create form the following entries are made Run command: ./file.sh Run command arguments: argument1 argument2 argument3 Before change: POD log shows arg1 = argument1 argument2 argument3 arg2 = so all 3 arguments are passed as one argument Deployment yaml shows(only container part) spec: containers: - name: demo-arg-old image: tcnthomas/arguments command: - ./file.sh args: - argument1 argument2 argument3 After change POD log shows arg1 = argument1 arg2 = argument2 First 2 arguments are shown as expected. 3rd argument is not shown as it is not part of the script Deployment yaml shows(only container part) spec: containers: - name: demo-arg-new image: tcnthomas/arguments command: - ./file.sh args: - argument1 - argument2 - argument3
Showing
想要评论请 注册 或 登录