-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Document deprecated leader annotation #42054
Conversation
/language en |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
@windsonsea pushed the changes suggested by you |
lgtm for the text. Could you squash your commits into a single one? |
/sig api-machinery |
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
/retitle Document deprecated leader annotation
|
||
Type: Annotation | ||
|
||
Example: `control-plane.alpha.kubernetes.io/leader={"holderIdentity":"controller-0","leaseDurationSeconds":15,"acquireTime":"2023-01-19T13:12:57Z","renewTime":"2023-01-19T13:13:54Z","leaderTransitions":1}` |
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'm afraid this isn't a valid representation of a YAML snippet. Try copying this from an actual Endpoints manifest.
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.
@sftim this is not yaml snippet rather it is outcome of kubectl get command corresponding to this annotation
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.
Thing is: all the other labels and annotations have their examples in the format of a YAML snippet. Let's follow that convention.
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.
@sftim as its got deprecated i am not able to find exact example in any yaml file.
Can you help me in this?
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.
You don't need to copy this from an actual Endpoints; another way is to make sure you are writing [a fragment of] valid YAML.
Try this:
https://learnxinyminutes.com/docs/yaml/
You've got the string value right, but you haven't quoted it, and you've used an =
where YAML uses a :
.
@@ -1086,6 +1086,23 @@ has been truncated to 1000. | |||
|
|||
If the number of backend endpoints falls below 1000, the control plane removes this annotation. | |||
|
|||
### control-plane.alpha.kubernetes.io/leader |
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.
### control-plane.alpha.kubernetes.io/leader | |
### control-plane.alpha.kubernetes.io/leader (deprecated) {#control-plane-alpha-kubernetes-io-leader} |
|
||
Used on: Endpoints | ||
|
||
The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} adds this annotation to |
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.
The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} adds this annotation to | |
The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} previously set annotation on |
Used on: Endpoints | ||
|
||
The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} adds this annotation to | ||
an [Endpoints](/docs/concepts/services-networking/service/#endpoints) object. This annotation provides |
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.
an [Endpoints](/docs/concepts/services-networking/service/#endpoints) object. This annotation provides | |
an [Endpoints](/docs/concepts/services-networking/service/#endpoints) object. This annotation provided |
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.
@kundan2707 In your next PR, please help mark these conversations as "resolved" by clicking the "Resolve conversation" button below when you agree to the suggests and you have revised the PR accordingly.
Checking conversation resolved helps the reviewers confirm that previous discussions are clean, the current reviewer may switch to different aspects of the PR, and a new reviewer wouldn't need to check the whole history of a PR.
@windsonsea i will squash all commits after resolving @sftim comments. |
0861b44
to
f6f9e85
Compare
@kundan2707 Please check the latest comment and address it if possible. |
@tengqm will incorporate latest comment |
f6f9e85
to
d45d1b5
Compare
d45d1b5
to
f7df84d
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tengqm 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 |
All feedback resolved. |
LGTM label has been added. Git tree hash: e4d4741dd3db8fb85f13afb7961e244496b77734
|
documented unregistered annotation
"control-plane.alpha.kubernetes.io/leader"
fixes: #39297