Skip to content
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

Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus #85863

Merged
merged 1 commit into from Dec 5, 2019

Conversation

nan-yu
Copy link
Contributor

@nan-yu nan-yu commented Dec 3, 2019

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Update the field name to follow the same naming convention

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 3, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @nan-yu. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@nan-yu
Copy link
Contributor Author

nan-yu commented Dec 3, 2019

cc @mortent

@mortent
Copy link
Member

mortent commented Dec 3, 2019

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Dec 3, 2019
@mortent
Copy link
Member

mortent commented Dec 3, 2019

/sig apps

@k8s-ci-robot k8s-ci-robot added sig/apps Categorizes an issue or PR as relevant to SIG Apps. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Dec 3, 2019
@nan-yu
Copy link
Contributor Author

nan-yu commented Dec 4, 2019

/test pull-kubernetes-e2e-gce

Copy link
Contributor

@draveness draveness left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/priority backlog
/lgtm

This PR looks good to me since it doesn't break the API

@k8s-ci-robot k8s-ci-robot added priority/backlog Higher priority than priority/awaiting-more-evidence. lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-priority Indicates a PR lacks a `priority/foo` label and requires one. labels Dec 4, 2019
@mortent
Copy link
Member

mortent commented Dec 4, 2019

This change was originally part of the PR to make PDBs GA. This moves it into a separate PR to reduce the size and complexity of the PDBs to GA PR ref #81571 (comment). I will update #81571 when this is merged.

/lgtm
cc @lavalamp

@@ -47,7 +47,7 @@ type PodDisruptionBudgetSpec struct {
// PodDisruptionBudgetStatus represents information about the status of a
// PodDisruptionBudget. Status may trail the actual state of a system.
type PodDisruptionBudgetStatus struct {
// Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other
// Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should actually use the json name in the comment (disruptionsAllowed); I like to use backticks to make it even more obvious and less weird to start the sentence with a lowercase letter.

Copy link
Contributor Author

@nan-yu nan-yu Dec 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment. I checked comments for other fields in this file. We kind of use both ways, lowercase first letter (// allowedUnsafeSysctls) and uppercase first letter (// AllowedCSIDrivers is), but no backticks.

Given this sentence is not the start of the comment, I am inclined to keep it as-is to make it more in-line with other comments

@lavalamp ^^

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liggitt we should probably document this more clearly-- looks like it's not covered by https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#naming-conventions, is it covered somewhere else?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that it's not officially documented I won't block the PR, I guess

(Note that it being wrong in other places isn't a reason I accept as valid for keeping it wrong here :) )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, not that I know of. need a godoc section in that doc, and an issue tracking sweeping existing types to fix docs

@lavalamp
Copy link
Member

lavalamp commented Dec 4, 2019

LGTM - let me know what you want to do about the comment.

@lavalamp
Copy link
Member

lavalamp commented Dec 5, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lavalamp, nan-yu

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 k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 5, 2019
@k8s-ci-robot k8s-ci-robot merged commit b8ce44f into kubernetes:master Dec 5, 2019
@k8s-ci-robot k8s-ci-robot added this to the v1.18 milestone Dec 5, 2019
@nan-yu nan-yu deleted the pdb_status_renaming branch December 9, 2019 17:33
wking pushed a commit to wking/kubernetes that referenced this pull request Jul 21, 2020
Rename PodDisruptionsAllowed to DisruptionsAllowed in type PodDisruptionBudgetStatus

Kubernetes-commit: b8ce44f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/backlog Higher priority than priority/awaiting-more-evidence. release-note-none Denotes a PR that doesn't merit a release note. sig/apps Categorizes an issue or PR as relevant to SIG Apps. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants