-
Notifications
You must be signed in to change notification settings - Fork 40.4k
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
VolumeDevices validation and tests #72375
VolumeDevices validation and tests #72375
Conversation
/assign @liggitt |
/test pull-kubernetes-verify |
pkg/api/pod/util.go
Outdated
@@ -337,25 +337,16 @@ func dropDisabledProcMountField(podSpec, oldPodSpec *api.PodSpec) { | |||
} | |||
} | |||
|
|||
// dropDisabledVolumeDevicesAlphaFields removes disabled fields from []VolumeDevice. | |||
// dropDisabledVolumeDevicesAlphaFields removes disabled fields from []VolumeDevice if it has not been already populated. | |||
// This should be called from PrepareForCreate/PrepareForUpdate for all resources containing a VolumeDevice | |||
func dropDisabledVolumeDevicesAlphaFields(podSpec, oldPodSpec *api.PodSpec) { |
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.
rename to dropDisabledVolumeDevicesFields
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.
done
pkg/api/pod/util_test.go
Outdated
@@ -455,17 +527,17 @@ func TestDropRuntimeClass(t *testing.T) { | |||
{ | |||
description: "pod Without RuntimeClassName", | |||
hasPodRuntimeClassName: false, | |||
pod: podWithoutRuntimeClass, | |||
pod: podWithoutRuntimeClass, |
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.
gofmt again :)
a couple nits, lgtm otherwise |
/retest |
Signed-off-by: Serguei Bezverkhi <sbezverk@cisco.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, sbezverk 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 |
Signed-off-by: Serguei Bezverkhi sbezverk@cisco.com
See for reference issue: #72169
/sig api-machinery
/sig storage
/kind cleanup
/release-note-none