-
Notifications
You must be signed in to change notification settings - Fork 40k
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
updating labels.md and design/labels.md #5189
Conversation
The set based label selector is a general form of equality since `environment=production` is equivalent to `environment in (production)`; similarly for `!=` and `notin`. | ||
|
||
Set based requirements can be mixed with equality based requirements. For example: `partition,environment!=qa`. | ||
|
||
|
||
LIST and WATCH operations may specify label selectors to filter the sets of objects returned using a query parameter: `?labels=key1%3Dvalue1,key2%3Dvalue2,...`. |
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.
Please extend this example to illustrate the expanded query syntax.
Thanks @sdminonne. The 2 labels docs were originally a single doc. There's still a lot of overlap. What do you think about re-merging them? There's really just one sentence in the design doc that's implementation-oriented rather than usage-oriented. |
@bgrant0607 working on this. Need few hours to come back. |
Thanks. |
db8dbfb
to
ead073d
Compare
@bgrant0607 PTAL
Hope it's better now. |
@@ -1,9 +1,8 @@ | |||
# Labels | |||
|
|||
_Labels_ are key/value pairs that are attached to objects, such as pods. |
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.
Please add after this sentence:
Labels are intended to be used to specify identifying attributes of objects that are meaningful and relevant to users, but which do not directly imply semantics to the core system.
Thanks a lot. I made a few more suggestions but I think this will be good once they're done. After you make the changes, please squash your commits and comment on the PR. |
ead073d
to
3e6472f
Compare
@bgrant0607, squashed and rebased. PTAL. |
Perfect! |
updating labels.md and design/labels.md
@bgrant0607 @smarterclayton thanks to have a look