mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 21:50:05 +00:00
fix populateDesiredStateOfWorld bug for attach/detach controller
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user