mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-25 14:35:43 +00:00
Promote Cinder topology labels to GA
This commit is contained in:
@@ -748,10 +748,10 @@ func (os *OpenStack) GetLabelsForVolume(ctx context.Context, pv *v1.PersistentVo
|
||||
// Construct Volume Labels
|
||||
labels := make(map[string]string)
|
||||
if volume.AvailabilityZone != "" {
|
||||
labels[v1.LabelFailureDomainBetaZone] = volume.AvailabilityZone
|
||||
labels[v1.LabelTopologyZone] = volume.AvailabilityZone
|
||||
}
|
||||
if os.region != "" {
|
||||
labels[v1.LabelFailureDomainBetaRegion] = os.region
|
||||
labels[v1.LabelTopologyRegion] = os.region
|
||||
}
|
||||
klog.V(4).Infof("The Volume %s has labels %v", pv.Spec.Cinder.VolumeID, labels)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user