-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Make DisruptedPods in PodDisruptionBudgetStatus optional field #63757
Make DisruptedPods in PodDisruptionBudgetStatus optional field #63757
Conversation
/ok-to-test |
/unassign |
/test pull-kubernetes-verify |
/cc @liggitt |
Just rebased. |
@@ -60,6 +60,7 @@ type PodDisruptionBudgetStatus struct { | |||
// the list automatically by PodDisruptionBudget controller after some time. | |||
// If everything goes smooth this map should be empty for the most of the time. | |||
// Large number of entries in the map may indicate problems with pod deletions. | |||
// +optional | |||
DisruptedPods map[string]metav1.Time `json:"disruptedPods" protobuf:"bytes,2,rep,name=disruptedPods"` |
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.
if this is optional, it should also set omitempty in the json options. that would mean this field would no longer be serialized as disruptedPods: null
and would instead be omitted entirely.
@@ -63,6 +63,7 @@ type PodDisruptionBudgetStatus struct { | |||
// the list automatically by PodDisruptionBudget controller after some time. | |||
// If everything goes smooth this map should be empty for the most of the time. | |||
// Large number of entries in the map may indicate problems with pod deletions. | |||
// +optional |
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.
@liggitt is this comment useful for internal types as well?
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 can't think of anything that gets generated off the internal types, so I don't think so
/test pull-kubernetes-integration |
@liggitt Thank you. Updated. |
thanks, please squash down the commits, then LGTM |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, nak3 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 |
/retest |
/test all [submit-queue is verifying that this PR is safe to merge] |
@nak3: The following test failed, say
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. |
Automatic merge from submit-queue (batch tested with PRs 63757, 67698, 67712, 67494, 67700). If you want to cherry-pick this change to another branch, please follow the instructions here. |
This should have a release note. @nak3 can you update the main PR body to include a release note? |
@nikhita Sure, done. |
What this PR does / why we need it:
Please refer to #63756
Which issue(s) this PR fixes
Fixes #63756
Release note: