Skip to content
Snippets Groups Projects
Unverified Commit 06391b6d authored by Y0UZ45's avatar Y0UZ45 Committed by GitHub
Browse files

Fix kubectl.sh parameter quoting (#6239)

If the special parameter "$@" is not quoted, the following command will not work:

./kubectl.sh patch storageclass my-storage-class -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
parent 8dc01df6
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
copy: copy:
content: | content: |
#!/bin/bash #!/bin/bash
${BASH_SOURCE%/*}/kubectl --kubeconfig=${BASH_SOURCE%/*}/admin.conf $@ ${BASH_SOURCE%/*}/kubectl --kubeconfig=${BASH_SOURCE%/*}/admin.conf "$@"
dest: "{{ artifacts_dir }}/kubectl.sh" dest: "{{ artifacts_dir }}/kubectl.sh"
mode: 0755 mode: 0755
become: no become: no
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment