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

-f option does not support multiple key-value like option -l #239

Open
djangoUnchained1 opened this issue Aug 24, 2022 · 1 comment
Open

Comments

@djangoUnchained1
Copy link

Do we have a chance make some workaround?
How we can filter by name: -f "metadata.name in (service-1, service-2, service-3)"

@seeruk
Copy link

seeruk commented Aug 28, 2024

I'm pretty curious about this one, I'm not sure that changing the syntax would be easy, because it's behaving as it does in kubectl I believe.

What I was hoping to be able to do was something like this:

$ kubefwd svc -n namespace-1 -f metadata.name service-1 -f metadata.name service-2 -n namespace-2 -f metadata.name service-1

We've built a thin wrapped over Kubefwd, but it currently only supports forwarding services in the default namespace. I was hoping to be able to update it so I could basically specify a list of services like this:

service-1.namespace-1
service-2.namespace-1
service-1.namespace2

And then run the appropriate command behind the scenes to pick that out. I think this might be possible using label selectors and multiple namespaces (maybe), but not all of the apps are first-party and have the same label structure, which makes this a lot more difficult.

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

2 participants