mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
make filteredZones order predictable
by using List() instead of UnsortedList()
This commit is contained in:
parent
426e5dc57d
commit
4c3d40bf50
@ -119,7 +119,7 @@ func addTopology(pv *v1.PersistentVolume, topologyKey string, zones []string) er
|
||||
}
|
||||
}
|
||||
|
||||
zones = filteredZones.UnsortedList()
|
||||
zones = filteredZones.List()
|
||||
if len(zones) < 1 {
|
||||
return errors.New("there are no valid zones to add to pv")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user