mirror of https://github.com/k3s-io/k3s
Merge pull request #73962 from wongma7/glusterfs-sc
Fix glusterfs e2e not using correct storageclasspull/564/head
commit
f9af7e94a9
|
@ -297,6 +297,7 @@ func testProvisioning(input *provisioningTestInput) {
|
|||
func TestDynamicProvisioning(t StorageClassTest, client clientset.Interface, claim *v1.PersistentVolumeClaim, class *storage.StorageClass) *v1.PersistentVolume {
|
||||
var err error
|
||||
if class != nil {
|
||||
Expect(*claim.Spec.StorageClassName).To(Equal(class.Name))
|
||||
By("creating a StorageClass " + class.Name)
|
||||
_, err = client.StorageV1().StorageClasses().Create(class)
|
||||
// The "should provision storage with snapshot data source" test already has created the class.
|
||||
|
|
|
@ -828,6 +828,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
|
|||
|
||||
By("creating a claim object with a suffix for gluster dynamic provisioner")
|
||||
claim := newClaim(test, ns, suffix)
|
||||
claim.Spec.StorageClassName = &class.Name
|
||||
|
||||
testsuites.TestDynamicProvisioning(test, c, claim, class)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue