-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
JSON marshaling/unmarshaling of label Selector #17217
JSON marshaling/unmarshaling of label Selector #17217
Conversation
Labelling this PR as size/M |
GCE e2e test build/test passed for commit 748a639e5b8057e466b830aefac0ad25bc037ced. |
748a639
to
9de5bdc
Compare
Labelling this PR as size/L |
GCE e2e test build/test passed for commit 9de5bdc51d2b6d010ad082d46066130ec6e66e88. |
@lavalamp - PTAL |
@@ -235,3 +236,26 @@ func parseSelector(selector string, fn TransformFunc) (Selector, error) { | |||
func OneTermEqualSelector(k, v string) Selector { | |||
return &hasTerm{field: k, value: v} | |||
} | |||
|
|||
// SelectorHolder is a wrapper around Selector that allows for |
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 was sure I'd already left a comment here, but I don't see it now. Maybe it's sitting unsent in one of my many open tabs.
Anyway, what do you think about moving these holders to pkg/api/unversioned, where we have other similar types?
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.
Done.
73f07c9
to
2f84014
Compare
GCE e2e build/test failed for commit 73f07c9ceadda964718521b62ec26645bf0bc722. |
GCE e2e build/test failed for commit 2f84014ac29951a0311bdcbcb863dc6202168bc8. |
LGTM |
If you make a follow-up, I recommend changing the name to drop the "Holder" suffix on the type names-- it's not needed any more. |
@k8s-bot test this |
GCE e2e build/test failed for commit 2f84014ac29951a0311bdcbcb863dc6202168bc8. |
GCE e2e build/test failed for commit 2f84014ac29951a0311bdcbcb863dc6202168bc8. |
@k8s-bot e2e test this please |
GCE e2e test build/test passed for commit 2f84014ac29951a0311bdcbcb863dc6202168bc8. |
2f84014
to
975871e
Compare
I've just done the rename requested above. |
GCE e2e test build/test passed for commit 975871e. |
Thanks! still LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit 975871e. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
Ref #16376 #15945