getporter/porter

porter installation list advanced filtering

Closed this issue · 5 comments

Is your feature request related to a problem? Please describe.
The current filtering capabilities of [porter installation list](https://porter.sh/cli/porter_installations_list/) is limited.

We would like to be able to:

  • Filter on state e.g. installed/uninstalled (#2775 tries to solve this)
  • Filter on version of bundle

To be able to do more advanced queries like:

  • Find bundle X with version Y across all namespaces

Describe the solution you'd like
I would like a solution like kubectl field selectors.

This will enable us to query like porter installation list --name=X --version=y --all-namespaces

Hi @schristoff If this is not assigned to anyone, I can work on this one.

Thanks,
Mani

@maniSbindra I just started working on this last night (not finished). Would you like to take over the PR? #2880

@maniSbindra I just started working on this last night (not finished). Would you like to take over the PR? #2880

Hi @ludfjig sure I can take over the PR. I started looking at this earlier today. I do have a solution working locally which uses the reflect package to filter installations list based on--field-selector arguments.

@maniSbindra I just started working on this last night (not finished). Would you like to take over the PR? #2880

Hi @ludfjig sure I can take over the PR. I started looking at this earlier today. I do have a solution working locally which uses the reflect package to filter installations list based on--field-selector arguments.

great, thanks