Merge pull request #51574 from dillaman/ceph-rbd-image-format

Automatic merge from submit-queue (batch tested with PRs 51574, 51534, 49257, 44680, 48836)

rbd: default image format to v2 instead of deprecated v1

**What this PR does / why we need it**:
Image format v1 has been deprecated since the Infernalis release of
Ceph over two years ago.

**Release note**:
```StorageClass Ceph RBD now defaults to using the v2 image format ```
This commit is contained in:
Kubernetes Submit Queue 2017-08-31 23:13:15 -07:00 committed by GitHub
commit 8c8b1b5e88

View File

@ -291,7 +291,7 @@ func (r *rbdVolumeProvisioner) Provision() (*v1.PersistentVolume, error) {
adminSecretNamespace := rbdDefaultAdminSecretNamespace
secretName := ""
secret := ""
imageFormat := rbdImageFormat1
imageFormat := rbdImageFormat2
fstype := ""
for k, v := range r.options.Parameters {