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
instancetype: Introduce PreferredTerminationGracePeriodSeconds
#9744
instancetype: Introduce PreferredTerminationGracePeriodSeconds
#9744
Conversation
Skipping CI for Draft Pull Request. |
PreferredTerminationGracePeriodSeconds
pkg/instancetype/instancetype.go
Outdated
if preferenceSpec.PreferredTerminationGracePeriodSeconds == nil { | ||
return | ||
} | ||
vmiSpec.TerminationGracePeriodSeconds = pointer.Int64(*preferenceSpec.PreferredTerminationGracePeriodSeconds) |
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.
What if vmiSpec.TerminationGracePeriodSeconds != nil
? This would override the value set by the user? (no longer a preference)
e634d07
to
f988307
Compare
f988307
to
4411916
Compare
/unhold |
4411916
to
d078f88
Compare
@@ -21,6 +21,7 @@ package v1alpha2 | |||
|
|||
import ( | |||
conversion "k8s.io/apimachinery/pkg/conversion" | |||
|
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.
super nit: extra empty line
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alicefr 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 |
d078f88
to
775826f
Compare
775826f
to
6523ec9
Compare
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.
/lgtm
6523ec9
to
304cfa6
Compare
/lgtm |
/retest-required |
1 similar comment
/retest-required |
This change introduces a simple preferred preference attribute for the VirtualMachineInstance TerminationGracePeriodSeconds attribute. This is often increased for Windows VirtualMachines thus it would be useful if users could set this from a given Windows based preference. Co-authored-by: Felix Matouschek <fmatouschek@redhat.com> Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
304cfa6
to
75ca3ee
Compare
/lgtm |
@lyarwood: The following test failed, say
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. |
/hold
/area instancetype
What this PR does / why we need it:
This change introduces a simple preferred preference attribute for the
VirtualMachineInstance TerminationGracePeriodSeconds attribute. This is
often increased for Windows VirtualMachines thus it would be useful if
users could set this from a given Windows based preference.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
Based on #9575
Release note: