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

Print manifest contents when --debug was passed #33

Open
carolynvs opened this issue Oct 13, 2021 · 0 comments
Open

Print manifest contents when --debug was passed #33

carolynvs opened this issue Oct 13, 2021 · 0 comments

Comments

@carolynvs
Copy link
Member

Sometimes I get an error about how the manifest is malformed. When that happens it's super hard to troubleshoot. If the kubernetes plugin would print the manifests contents, that would help.

If we run the following command before apply, we can get the rendered manifest printed out when --debug is set.

kubectl apply -f FILE --dry-run=client -o yaml

I checked and if we just specify -o yaml, it won't print the manifest until after its run, so when there's a problem with it, you can't see the file contents. So doing two commands, first dry-run, then apply, in debug mode would give you enough info to figure out what went wrong hopefully.

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