mirror of https://github.com/k3s-io/k3s
Fix glusterfs e2e not using correct storageclass
parent
836db5c90e
commit
6d73de1154
|
@ -227,6 +227,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.
|
||||
|
|
|
@ -805,6 +805,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