-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
change apps/v1beta2 StatefulSet observedGeneration from a pointer to an int for consistency #49607
change apps/v1beta2 StatefulSet observedGeneration from a pointer to an int for consistency #49607
Conversation
Hi @dixudx. 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 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. I understand the commands that are listed here. |
ac88296
to
9e131e2
Compare
@@ -225,7 +225,7 @@ type StatefulSetStatus struct { | |||
// observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the | |||
// StatefulSet's generation, which is updated on mutation by the API Server. | |||
// +optional | |||
ObservedGeneration *int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` | |||
ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"` |
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.
Can we do this? Isn't it a backward incompatible change?
@deads2k @smarterclayton
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.
Can we do this? Isn't it a backward incompatible change?
@deads2k @smarterclayton
Isn't the v1beta2
serialization net new in 1.8? If it is, then the proto serialization won't be a problem. Not sure how you'd roundtrip through it though. The compatibility of that bit depends on the meaning of nil versus 0 in the API itself.
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.
Yes, apps/v1beta2 is new and WIP so it's safe to break it.
/unassign mbohlool Looks good from API point of view (backward compatibility is not an issue here). |
9e131e2
to
c11737e
Compare
/ok-to-test |
@dixudx You will probably need to update the fuzzer to support round trip conversions from a pointer to a integer value and vice versa. |
/retest |
c11737e
to
9277997
Compare
/approve |
@dixudx One thing, can you update the release note to indicate that the observedGeneration field of the StatefulSetStatus Kind in the apps/v1beta2 group is an optional integer and not a pointer. |
@wojtek-t Need your |
@kow3ns Done. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dixudx, kow3ns, wojtek-t Associated issue: 49623 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 50000, 49954, 49943, 50018, 49607) |
What this PR does / why we need it:
change the StatefulSet observedGeneration from a pointer to an int for consistency
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #49623xref #49135
Special notes for your reviewer:
/cc @janetkuo @foxish @kow3ns
Release note: