mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #70459 from mvladev/fix-cloud-provider-openstack
fix openstack provider to handle only Cinder volumes
This commit is contained in:
commit
0325662cc3
@ -697,6 +697,11 @@ func (os *OpenStack) ShouldTrustDevicePath() bool {
|
||||
|
||||
// GetLabelsForVolume implements PVLabeler.GetLabelsForVolume
|
||||
func (os *OpenStack) GetLabelsForVolume(ctx context.Context, pv *v1.PersistentVolume) (map[string]string, error) {
|
||||
// Ignore if not Cinder.
|
||||
if pv.Spec.Cinder == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// Ignore any volumes that are being provisioned
|
||||
if pv.Spec.Cinder.VolumeID == k8s_volume.ProvisionedVolumeName {
|
||||
return nil, nil
|
||||
|
Loading…
Reference in New Issue
Block a user