k3s/pkg/registry
Kubernetes Submit Queue e0f75338b5 Merge pull request #52933 from liggitt/proxy-subpath-slash
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>..

Preserve leading and trailing slashes on proxy subpaths

subresource parsing was not populating path parameters correctly (leading and trailing slashes were being stripped)

this caused bad locations to be sent to the proxy, causing https://github.com/kubernetes/kubernetes/issues/52022. the first attempt to fix that (#52065) unconditionally prefixed '/', which broke the redirect case (#52813 #52729)

fixes #52813, fixes #52729

needs to be picked to 1.7 and 1.8

```release-note
Restores redirect behavior for proxy subresources
```
2017-09-23 12:34:41 -07:00
..
admissionregistration Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
apps Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
authentication Merge pull request #49698 from m1093782566/validate-tokenreview 2017-08-13 23:59:11 -07:00
authorization generated 2017-09-01 19:11:19 +08:00
autoscaling Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
batch Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
cachesize Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
certificates Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
core Preserve leading and trailing slashes on proxy subpaths 2017-09-22 23:05:13 -04:00
extensions Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
networking Merge pull request #51673 from lichuqiang/add_ut 2017-09-23 04:02:59 -07:00
policy Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
rbac Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
registrytest Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
scheduling Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
settings Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
storage Allow watch cache to be disabled per type 2017-09-08 13:42:28 -04:00
BUILD generated 2017-09-01 19:11:19 +08:00
OWNERS Add liggitt to registry approvers 2017-09-04 11:20:38 -04:00
doc.go