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

kubectl neat pod error when kubectl is an alias #35

Open
itaysk opened this issue Jun 1, 2020 · 0 comments
Open

kubectl neat pod error when kubectl is an alias #35

itaysk opened this issue Jun 1, 2020 · 0 comments

Comments

@itaysk
Copy link
Owner

itaysk commented Jun 1, 2020

reported by Polymerase here: https://stackoverflow.com/questions/62077977/kubectl-get-o-yaml-is-it-posible-to-hide-metadata-managedfields/62111936?noredirect=1#comment109868163_62111936

This is SUPER 'neat' thank you very much. Just a little hiccup with the syntax kubectl neat pod/mypod-abcd -oyaml using microk8s: "error while running [kubectl get pod/mypod-abcd -oyaml]: exec: "kubectl": executable file not found in $PATH" This is because the alias kubectl='microk8s.kubectl' is not expanded in non-interactive use. kubectl neat pod/mypod -oyaml | kubectl neat works OK.

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

No branches or pull requests

1 participant