-
Notifications
You must be signed in to change notification settings - Fork 212
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
Support labels #1701
Support labels #1701
Conversation
ad28356
to
d960c9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only other thought is around the use of a positional argument for the installation/paramset/credset name and how it is different from the other query options that are behind flags (--namespace and --label). I'm wondering if we want to consider using a flag for the name query (--name), instead of consuming it via the positional arg.
However, the installation/paramset/credset name is and has been consumed via a positional arg for the corresponding install
and generate
commands, so in this light, the current approach is in-line with expectations.
pkg/porter/list.go
Outdated
if len(args) == 1 { | ||
o.Name = args[0] | ||
} else if len(args) > 1 { | ||
return errors.Errorf("only one positional argument may be specified, the installation name, but multiple were received: %s", args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this same check for the params/creds list commands?
e.g.
$ porter params list foo foo
NAMESPACE NAME MODIFIED
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll switch to a --name flag so that we don't need this check at all.
@vdice I actually ripped off the |
@vdice fixed |
Add labels to installations, credential sets and parameter sets. Signed-off-by: Carolyn Van Slyck <[email protected]>
Signed-off-by: Carolyn Van Slyck <[email protected]>
Signed-off-by: Carolyn Van Slyck <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What does this change
Support applying labels to installations, parameter and credential sets. Users can use these labels to filter list results. Eventually we can use these for matching dependencies.
I have also moved when an installation is created during porter install so that we can persist the labels.
What issue does it fix
Closes #1683
Notes for the reviewer
Checklist