-
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
update requestScope to fully qualify kind and resource #17956
Conversation
Labelling this PR as size/L |
GCE e2e test build/test passed for commit 86cb9ffa2c4990524a4e8574be25570ab6b6a35c. |
getSubpathKey string | ||
getOptions runtime.Object | ||
versionedGetOptions runtime.Object | ||
getOptionsInternalFQKind unversioned.GroupVersionKind |
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.
What is FQ? Could we expand the acronym?
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.
What is FQ? Could we expand the acronym?
FullyQualified
. It gets a bit long. @derekwaynecarr preferred not having GVK
Several questions and nits, otherwise LGTM. Thanks. |
2c6ecbe
to
b4ca233
Compare
variable names changed, spelling corrected, and questioned answered. |
GCE e2e test build/test passed for commit b4ca23332ddf6f7282c631521854e5c14828cb48. |
GCE e2e test build/test passed for commit 2c6ecbe8e1dcd7f96db6f642e56671d523c18d84. |
} | ||
|
||
if err := scope.Codec.DecodeParametersInto(query, versioned); err != nil { | ||
return nil, errors.NewBadRequest(err.Error()) | ||
} | ||
out, err := scope.Convertor.ConvertToVersion(versioned, internalGVString) | ||
out, err := scope.Convertor.ConvertToVersion(versioned, internalKind.GroupVersion().String()) |
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.
Why do we need the internalKind, why can't we do it the old way, using scope.InternalVersion?
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.
Why do we need the internalKind, why can't we do it the old way, using scope.InternalVersion?
scope.InternalVersion
is the internal version of the object you're returning. This method needs to have the internal version of your getOptions
. The two are always different except for the legacy kube group.
b4ca233
to
a7dd09e
Compare
Thank you @deads2k. LGTM. |
Continuous integration appears to have missed, closing and re-opening to trigger it |
GCE e2e test build/test passed for commit a7dd09e. |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e test build/test passed for commit a7dd09e. |
Automatic merge from submit-queue |
Auto commit by PR queue bot
Updates the
RequestScope
to have fully qualified kinds and resources.ref #17216
@liggitt @caesarxuchao
@wojtek-t I think you were in this area recently.