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

Flags not works #41

Open
aiannello opened this issue Jun 6, 2023 · 3 comments
Open

Flags not works #41

aiannello opened this issue Jun 6, 2023 · 3 comments

Comments

@aiannello
Copy link

I am running the tool locally. I have tried the following instructions

./kube-dump dump -d /Users/andrea/Tools/dump
./kube-dump dump --namespaced-resources deployment --destination-dir /Users/andrea/Tools/dump
./kube-dump dump-namespaces -d /Users/andrea/Tools/dump
./kube-dump ns -r deployment -d /Users/andrea/Tools/dump

but it seems to ignore all the flags because it always downloads all the resources and saves them in the default directory (data).
Am I doing something wrong?

@WoozyMasta
Copy link
Owner

Perhaps the reason is in the versions of local utilities such as jq or yq

Try use container image

@WoozyMasta
Copy link
Owner

or provide a bash debug log

bash -x kube-dump

maybe this will help you find the answer

@GUI
Copy link

GUI commented Mar 30, 2024

If you're on a Mac, I think this is due to differences in getopt versions. I think this can be solved if you force kube-dump to use GNU getopts. Here's an example using Homebrew to install that version and then use it:

brew install gnu-getopt

PATH="$(brew --prefix)/opt/gnu-getopt/bin:$PATH" ./kube-dump all -d ./tmp/whatever

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

3 participants