Re: [kubernetes/kubernetes] document /watch prefix deprecation (#65147)

4 views
Skip to first unread message

k8s-ci-robot

unread,
Jun 15, 2018, 12:09:10 PM6/15/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@liggitt: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Jordan Liggitt

unread,
Jun 15, 2018, 12:10:13 PM6/15/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

these have been marked as deprecated in code for many releases, and all client accesses have switched to using the ?watch=true access method, but documentation was never updated

@kubernetes/sig-api-machinery-api-reviews @kubernetes/api-reviewers


You can view, comment on, or merge this pull request online at:

  https://github.com/kubernetes/kubernetes/pull/65147

Commit Summary

  • document /watch prefix deprecation

File Changes

Patch Links:

k8s-ci-robot

unread,
Jun 15, 2018, 12:10:20 PM6/15/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Jordan Liggitt

unread,
Jun 15, 2018, 1:28:59 PM6/15/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

The /proxy prefix paths were removed in 1.10 in #59884

I'd like to get deprecation of the /watch prefix paths on the record for 1.11.

Zhonghu Xu

unread,
Jun 19, 2018, 11:44:07 PM6/19/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@hzxuzhonghu commented on this pull request.


In staging/src/k8s.io/apiserver/pkg/endpoints/installer.go:

> @@ -382,7 +382,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
 		actions = appendIf(actions, action{"LIST", resourcePath, resourceParams, namer, false}, isLister)
 		actions = appendIf(actions, action{"POST", resourcePath, resourceParams, namer, false}, isCreater)
 		actions = appendIf(actions, action{"DELETECOLLECTION", resourcePath, resourceParams, namer, false}, isCollectionDeleter)
-		// DEPRECATED

Haven't been deprecated long ago? Can we remove now?

Jordan Liggitt

unread,
Jun 19, 2018, 11:51:03 PM6/19/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@liggitt commented on this pull request.


In staging/src/k8s.io/apiserver/pkg/endpoints/installer.go:

> @@ -382,7 +382,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
 		actions = appendIf(actions, action{"LIST", resourcePath, resourceParams, namer, false}, isLister)
 		actions = appendIf(actions, action{"POST", resourcePath, resourceParams, namer, false}, isCreater)
 		actions = appendIf(actions, action{"DELETECOLLECTION", resourcePath, resourceParams, namer, false}, isCollectionDeleter)
-		// DEPRECATED

it wasn't formally announced, so not yet.

Zhonghu Xu

unread,
Jun 20, 2018, 1:52:27 AM6/20/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@hzxuzhonghu commented on this pull request.


In staging/src/k8s.io/apiserver/pkg/endpoints/installer.go:

> @@ -382,7 +382,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
 		actions = appendIf(actions, action{"LIST", resourcePath, resourceParams, namer, false}, isLister)
 		actions = appendIf(actions, action{"POST", resourcePath, resourceParams, namer, false}, isCreater)
 		actions = appendIf(actions, action{"DELETECOLLECTION", resourcePath, resourceParams, namer, false}, isCollectionDeleter)
-		// DEPRECATED

ic

Daniel Smith

unread,
Jun 21, 2018, 4:27:58 PM6/21/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

I was just saying on a api coverage spreadsheet that all these should be just deleted at this point...

cc @mbohlool to double check the open api spec

Jordan Liggitt

unread,
Jun 21, 2018, 4:47:32 PM6/21/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

I was just saying on a api coverage spreadsheet that all these should be just deleted at this point...

cc @mbohlool to double check the open api spec

unfortunately, the endpoints are listed throughout the openapi spec, with no doc-visible deprecation notices

Jordan Liggitt

unread,
Jun 25, 2018, 6:40:20 PM6/25/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@lavalamp @deads2k should we include this deprecation announcement in the 1.11 release notes?

k8s-ci-robot

unread,
Jun 29, 2018, 2:50:07 PM6/29/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@liggitt: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Jordan Liggitt

unread,
Jul 13, 2018, 2:15:16 PM7/13/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Aaron Crickenberger

unread,
Jul 31, 2018, 9:22:11 PM7/31/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@liggitt needs-rebase (also, I'm happy to lgtm after rebase unless you specifically need approval from the aformentioned reviewers)

Jordan Liggitt

unread,
Aug 6, 2018, 5:36:25 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

rebased. would like an ack from @lavalamp / @deads2k

Daniel Smith

unread,
Aug 6, 2018, 5:49:22 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

/lgtm
/approve

k8s-ci-robot

unread,
Aug 6, 2018, 5:49:40 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lavalamp, liggitt

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot

unread,
Aug 6, 2018, 6:19:07 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@liggitt: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify 204d70c link /test pull-kubernetes-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Aaron Crickenberger

unread,
Aug 6, 2018, 7:45:59 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention
/go/src/k8s.io/kubernetes/api/openapi-spec is out of date. Please run hack/update-openapi-spec.sh
/go/src/k8s.io/kubernetes/api/swagger-spec is out of date. Please run hack/update-swagger-spec.sh

k8s-ci-robot

unread,
Aug 6, 2018, 8:07:11 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

New changes are detected. LGTM label has been removed.

Jordan Liggitt

unread,
Aug 6, 2018, 8:07:40 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

regenerated, retagging

k8s-ci-robot

unread,
Aug 6, 2018, 8:50:21 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@liggitt: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify 3cf4d77 link /test pull-kubernetes-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

fejta-bot

unread,
Aug 6, 2018, 10:55:39 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

/retest
This bot automatically retries jobs that failed/flaked on approved PRs (send feedback to fejta).

Review the full test history for this PR.

Silence the bot with an /lgtm cancel comment for consistent failures.

k8s-ci-robot

unread,
Aug 6, 2018, 11:38:00 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

@liggitt: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-verify 3cf4d77 link /test pull-kubernetes-verify

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Aaron Crickenberger

unread,
Aug 6, 2018, 11:39:42 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention
/go/src/k8s.io/kubernetes/docs/api-reference is out of date. Please run hack/update-api-reference-docs.sh

... sure would have been nice if it said this last time

Aaron Crickenberger

unread,
Aug 6, 2018, 11:39:56 PM8/6/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

/lgtm cancel
to stop fejta-bot from /retest spamming

Jordan Liggitt

unread,
Aug 7, 2018, 8:22:27 AM8/7/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

third time's the charm

Kubernetes Submit Queue

unread,
Aug 7, 2018, 9:45:09 AM8/7/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

/test all [submit-queue is verifying that this PR is safe to merge]

Kubernetes Submit Queue

unread,
Aug 7, 2018, 11:02:58 AM8/7/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

Kubernetes Submit Queue

unread,
Aug 7, 2018, 11:03:09 AM8/7/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Merged #65147 into master.

jethrogb

unread,
Dec 28, 2018, 2:03:25 AM12/28/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Why is this deprecated? This is a regression in terms of RBAC

Jordan Liggitt

unread,
Dec 28, 2018, 9:36:55 AM12/28/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

Why is this deprecated?

The top-level path segment access patterns (for proxy and watch) were deprecated in favor of the proxy subresource and the watch query parameter around 1.2

This is a regression in terms of RBAC

That is incorrect, watch requests are still separately permissioned using the watch verb. Prior to this, there were two URLs that would make a watch request (/watch/… and …?watch=true), and this announces deprecation of the first

jethrogb

unread,
Dec 28, 2018, 9:51:39 AM12/28/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

That is incorrect, watch requests are still separately permissioned using the watch verb.

With the Watch API, you can set watch permissions on a single named resource. With WatchList, you need to give permissions on all resources of a particular type. (Related kubernetes/kubectl#305)

Jordan Liggitt

unread,
Dec 28, 2018, 9:57:05 AM12/28/18
to kubernetes/kubernetes, k8s-mirror-api-machinery-api-reviews, Team mention

you can still set watch permissions on a single named item, watched with ?watch=true&fieldSelector=metadata.name=<name>

Reply all
Reply to author
Forward
0 new messages