-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Add sync reconstructed volume from desired state of world for volumemanager #103181
Add sync reconstructed volume from desired state of world for volumemanager #103181
Conversation
/triage accepted |
/assign @jingxu97 |
/test pull-kubernetes-e2e-gce-storage-slow |
/sig storage |
/priority important-longterm |
/ping @jingxu97 |
/assign @msau42 |
@@ -171,6 +171,10 @@ type ActualStateOfWorld interface { | |||
// to the node. This list can be used to determine volumes that are either in-use | |||
// or have a mount/unmount operation pending. | |||
GetAttachedVolumes() []AttachedVolume | |||
|
|||
// SyncReconstructedVolume check the volume.outerVolumeSpecName in asw with | |||
// the parameter outerVolumeSpecName from dsw , if dis-match, update this field from desired state information |
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 small nit, how about
// SyncReconstructedVolume check the volume.outerVolumeSpecName in asw with
// the one populated from dsw , if they do not match, update this field from the value from dsw.
}, | ||
}, | ||
} | ||
pod := createPodWithVolume("dswp-test-pod", "dswp-test-volume-name", "file-bound", containers) |
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.
how about make "dswp-test-volume-name" as a variable (outername) to make it easy to check
@249043822 thanks a lot for the PR. Sorry for the delay. |
b63fa86
to
c7bba1d
Compare
/test pull-kubernetes-e2e-gce-storage-slow |
@jingxu97 Thanks for your review, I have fixed the nits and pushed again. |
c7bba1d
to
65618bf
Compare
@jingxu97 nits fixed |
/lgtm |
@jingxu97 needs SIG Storage approval |
/assign @jingxu97 |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 249043822, jingxu97 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 |
@249043822 Are there any plans to cherry pick the PR into 1.21(and maybe 1.20,1.19)? |
@heartlock I have cherry-picked into 1.21(#109046), but I'm not sure whether 1.20 or before branches still active to accepted changes |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #103143
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: