-
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
fix cluster scoped self-link #44462
fix cluster scoped self-link #44462
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
There is a related change: #44489 |
Wouldn't it be better just to make https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/namer.go#L93 use |
I seem to recall some kind of performance problem with @liggitt @derekwaynecarr am I remembering correctly? |
path.Join is really bad, performance wise |
see #16384 (comment) |
LGTM, test would be good |
a related change: |
c43b973
to
5746d87
Compare
test added. tagging. |
Automatic merge from submit-queue (batch tested with PRs 42477, 44462) |
Will this be in the 1.6.3 release? |
Automatic merge from submit-queue Fix PathPrefix for subresources before this change: $ curl -s http://172.16.116.128:8080/api/v1/nodes/kubenet-02/status | grep selfLink "selfLink": "/api/v1/nodes/{name}/status/kubenet-02/status", after this change: $ curl -s http://172.16.116.128:8080/api/v1/nodes/kubenet-02/status | grep selfLink "selfLink": "/api/v1/nodes/kubenet-02/status", related to: #44462 **Release note**: ```NONE ```
Commit found in the "release-1.6" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
Might fix #37622, definitely fixes the cluster-scoped resource problem. Looks like it was just a typo when compared against https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/endpoints/installer.go#L451
@adohe @DirectXMan12