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
Graduate SelfLink deprecation to GA #31756
Conversation
👷 Deploy Preview for kubernetes-io-vnext-staging processing. 🔨 Explore the source changes: 86af7c1 🔍 Inspect the deploy log: https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/62135acf722fb00008f18bd5 |
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.
Thanks @wojtek-t
Let's document which release deprecated selfLink
, and edit the feature gate description to make that clear. The current text is a bit off because a literal reading implies the end user has control over whether the field is deprecated.
Additionally, we should describe the effect of this feature gate in terms of the API and its fields (camelCase), rather than the Golang code for our reference implementation (ListMeta
, etc).
For example:
- - `RemoveSelfLink`: Deprecates and removes `selfLink` from ObjectMeta and-
- ListMeta.
+ - `RemoveSelfLink`: Sets the `.metadata.selfLink` field to blank (empty string) for all
+ objects and collections. This field has been deprecated since the Kubernetes v1.xx
+ release. When this feature is enabled, the `.metadata.selfLink` field remains part of
+ the Kubernetes API, but is always unset.
/assign @mehabhalodiya |
bc6ada0
to
ff18569
Compare
@sftim - thanks; PTAL |
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.
content/en/docs/reference/command-line-tools-reference/feature-gates.md
LGTM
We'd usually omit the other changes (which are to generated files) and let the docs generation phase for the v1.24 release take care of those details.
|
||
|
||
|
||
SelfLink is DEPRECATED read-only field that is no longer populated by the system. |
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.
nit: I might call this an unused and / or legacy field; “deprecated” means “you should stop using this” (ahead of future removal, etc), whereas the truth now is that it already gone. The field is retained to meet API compatibility promises but the only field value is ""
.
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.
noted in the k/k PR, but putting Deprecated:
in the godoc will trigger some tools to issue warnings on use, which seems helpful
ff18569
to
67d9f30
Compare
@sftim - thanks for comments; PTAL |
|
||
|
||
|
||
SelfLink is a legacy read-only field that is no longer populated by the system. |
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.
This change needs to happen upstream first.
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 opened kubernetes/kubernetes#108163 for it.
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.
This is now merged in upstream.
@sftim - PTAL |
@wojtek-t Please remove changes to Other than this, the PR LGTM. |
67d9f30
to
86af7c1
Compare
@tengqm - thanks; PTAL |
/lgtm Defer approval to release maester. |
LGTM label has been added. Git tree hash: 664eccd09945b83e78de097ff511b0544691fb9a
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kbhawkey 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 |
Ref kubernetes/enhancements#1164
/assign @liggitt