-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Cleanup DaemonSet templateGeneration #49454
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
Cleanup DaemonSet templateGeneration #49454
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. |
e2055d4
to
7e7868b
Compare
7e7868b
to
7140223
Compare
pkg/apis/apps/v1beta2/conversion.go
Outdated
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.
No need to delete 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.
Just took a closer look, you touched out.Annotations
here, which is correct. Please ignore the previous comment.
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.
pkg/apis/apps/v1beta2/conversion.go
Outdated
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.
They're pointers, need to be converted with the way you did in L393
pkg/apis/apps/v1beta2/conversion.go
Outdated
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.
Would you move these closer to other DaemonSet conversion codes? The TODO comment does not apply to these conversion codes.
Thanks a lot for the fix! You'd need to run auto-gen scripts again ( |
@k8s-bot ok to test |
pkg/apis/apps/v1beta2/conversion.go
Outdated
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.
Need to check if Annotations
is nil
or not, otherwise this will panic
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 out.Annotations == nil {
out.Annotations = make(map[string]string)
}
@dixudx would you update conversion_test.go as well? |
@janetkuo Yeah, count on me. |
@janetkuo Add |
7140223
to
e178946
Compare
I don't think a user will understand the change just by reading the release note. |
@bgrant0607 Updated the release note. PTAL. |
I don't recall what release note you wrote originally, but I think something like "Deprecate .spec.templateGeneration field of extensions/v1beta1 DaemonSet" is enough |
@janetkuo The original note was something like "Cleanup templateGeneration", which was vague. Your suggestion is fine. |
…nSet to apps/v1beta2
f9e7189
to
4d3cba7
Compare
@janetkuo Rebased. PTAL. Thanks. |
/lgtm |
Just took a closer look, template generation was already deprecated in 1.7. This PR just removes the use of it in apps/v1beta2 DaemonSet. Since apps/v1beta2 was added in this release (1.8), this PR does not need a release note. |
/assign @thockin |
@bgrant0607 would you take another look? |
Was v1beta2 available in 1.7 releases? |
@thockin |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dixudx, janetkuo, thockin Associated issue: 49336 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 |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #49336Special notes for your reviewer:
/cc @janetkuo @foxish
Depends on #49071(Merged)Release note: