mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
fix volume conformance e2e test break other test
This commit is contained in:
parent
dc8b57d8a7
commit
77dfd63d1d
@ -452,8 +452,9 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
|
|||||||
|
|
||||||
pvNamePrefix := ns + "-"
|
pvNamePrefix := ns + "-"
|
||||||
pvHostPathConfig := e2epv.PersistentVolumeConfig{
|
pvHostPathConfig := e2epv.PersistentVolumeConfig{
|
||||||
NamePrefix: pvNamePrefix,
|
NamePrefix: pvNamePrefix,
|
||||||
Labels: volLabel,
|
Labels: volLabel,
|
||||||
|
StorageClassName: ns,
|
||||||
PVSource: v1.PersistentVolumeSource{
|
PVSource: v1.PersistentVolumeSource{
|
||||||
CSI: &v1.CSIPersistentVolumeSource{
|
CSI: &v1.CSIPersistentVolumeSource{
|
||||||
Driver: csiDriver.Name,
|
Driver: csiDriver.Name,
|
||||||
@ -461,6 +462,9 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
pvcConfig := e2epv.PersistentVolumeClaimConfig{
|
||||||
|
StorageClassName: &ns,
|
||||||
|
}
|
||||||
|
|
||||||
numPVs, numPVCs := 1, 1
|
numPVs, numPVCs := 1, 1
|
||||||
pvols, claims, err = e2epv.CreatePVsPVCs(ctx, numPVs, numPVCs, c, f.Timeouts, ns, pvHostPathConfig, pvcConfig)
|
pvols, claims, err = e2epv.CreatePVsPVCs(ctx, numPVs, numPVCs, c, f.Timeouts, ns, pvHostPathConfig, pvcConfig)
|
||||||
@ -669,6 +673,10 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pvcConfig := e2epv.PersistentVolumeClaimConfig{
|
||||||
|
StorageClassName: &ns,
|
||||||
|
}
|
||||||
|
|
||||||
numPVs, numPVCs := 1, 1
|
numPVs, numPVCs := 1, 1
|
||||||
pvols, claims, err = e2epv.CreatePVsPVCs(ctx, numPVs, numPVCs, c, f.Timeouts, ns, pvHostPathConfig, pvcConfig)
|
pvols, claims, err = e2epv.CreatePVsPVCs(ctx, numPVs, numPVCs, c, f.Timeouts, ns, pvHostPathConfig, pvcConfig)
|
||||||
framework.ExpectNoError(err, "Failed to create the requested storage resources")
|
framework.ExpectNoError(err, "Failed to create the requested storage resources")
|
||||||
|
Loading…
Reference in New Issue
Block a user