Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Let fluxctl list-images adhere to namespace filter #1763

Merged
merged 3 commits into from Feb 26, 2019

Conversation

hiddeco
Copy link
Member

@hiddeco hiddeco commented Feb 25, 2019

Fixes #837.

Tested the daemon with previous fluxctl versions and saw no abnormalities.

...to maintain backwards compatibility for partial resource IDs
(e.g. `deployment/foo`) without running into server side errors due
to supplying multiple filters (which the API does not support).
Copy link
Member

@squaremo squaremo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and tidy 🍎

I tried this locally and it worked as I expected:

  1. asking for fluxctl list-images --namespace .. shows all the workloads in the namespace
  2. asking for fluxctl list-images --namespace .. --controller .. uses the namespace to qualify the controller name

The change is backward-compatible to our tacit standard, which is that people are expected to use newer fluxctl with newer fluxd. At worst, if a daemon doesn't understand the namespace parameter, it'll return too many results.

@hiddeco hiddeco merged commit 2778372 into master Feb 26, 2019
@hiddeco hiddeco deleted the 837-fluxctl-list-images-ns branch February 26, 2019 15:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants