mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
fix populateDesiredStateOfWorld bug for attach/detach controller
This commit is contained in:
parent
cfc1d47397
commit
0e6ac1df76
@ -335,7 +335,7 @@ func (adc *attachDetachController) populateDesiredStateOfWorld() error {
|
|||||||
}
|
}
|
||||||
for _, pod := range pods {
|
for _, pod := range pods {
|
||||||
podToAdd := pod
|
podToAdd := pod
|
||||||
adc.podAdd(&podToAdd)
|
adc.podAdd(podToAdd)
|
||||||
for _, podVolume := range podToAdd.Spec.Volumes {
|
for _, podVolume := range podToAdd.Spec.Volumes {
|
||||||
// The volume specs present in the ActualStateOfWorld are nil, let's replace those
|
// The volume specs present in the ActualStateOfWorld are nil, let's replace those
|
||||||
// with the correct ones found on pods. The present in the ASW with no corresponding
|
// with the correct ones found on pods. The present in the ASW with no corresponding
|
||||||
|
Loading…
Reference in New Issue
Block a user