Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quotes to jsonpath in elasticsearch tutorial #123

Merged
merged 1 commit into from
Oct 26, 2017
Merged

Add quotes to jsonpath in elasticsearch tutorial #123

merged 1 commit into from
Oct 26, 2017

Conversation

mynameiswhm
Copy link
Contributor

Some shells (zsh, in my case) use curly braces for pattern expansion differently than sh/bash, so provided command fails:

$ kubectl exec -it $(kubectl get pods --all-namespaces -l app=kubedb -o jsonpath={.items[0].metadata.name}) -n kube-system sh

zsh: no matches found: jsonpath={.items[0].metadata.name}
error: expected 'exec POD_NAME COMMAND [ARG1] [ARG2] ... [ARGN]'.
POD_NAME and COMMAND are required arguments for the exec command
See 'kubectl exec -h' for help and examples.

I've added quotes to aviod that.

Some shells (zsh, in my case) use curly braces for pattern expansion differently than sh/bash, so provided command fails:

```
$ kubectl exec -it $(kubectl get pods --all-namespaces -l app=kubedb -o jsonpath={.items[0].metadata.name}) -n kube-system sh

zsh: no matches found: jsonpath={.items[0].metadata.name}
error: expected 'exec POD_NAME COMMAND [ARG1] [ARG2] ... [ARGN]'.
POD_NAME and COMMAND are required arguments for the exec command
See 'kubectl exec -h' for help and examples.
```

I've added quotes to aviod that.
@tamalsaha tamalsaha merged commit 3c539b6 into kubedb:master Oct 26, 2017
@tamalsaha
Copy link
Member

Thanks @mynameiswhm !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants