mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Added attach/mount/check steps to CSI Driver E2E tests
This commit is contained in:
parent
a7a081b541
commit
77df3ff525
@ -135,7 +135,7 @@ func (c *csiAttacher) waitForVolumeAttachmentInternal(volumeHandle, attachID str
|
|||||||
attach, err := c.k8s.StorageV1beta1().VolumeAttachments().Get(attachID, meta.GetOptions{})
|
attach, err := c.k8s.StorageV1beta1().VolumeAttachments().Get(attachID, meta.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Error(log("attacher.WaitForAttach failed for volume [%s] (will continue to try): %v", volumeHandle, err))
|
glog.Error(log("attacher.WaitForAttach failed for volume [%s] (will continue to try): %v", volumeHandle, err))
|
||||||
return "", err
|
return "", fmt.Errorf("volume %v has GET error for volume attachment %v: %v", volumeHandle, attachID, err)
|
||||||
}
|
}
|
||||||
// if being deleted, fail fast
|
// if being deleted, fail fast
|
||||||
if attach.GetDeletionTimestamp() != nil {
|
if attach.GetDeletionTimestamp() != nil {
|
||||||
|
@ -132,6 +132,7 @@ func (h *hostpathCSIDriver) createStorageClassTest(node v1.Node) storageClassTes
|
|||||||
claimSize: "1Gi",
|
claimSize: "1Gi",
|
||||||
expectedSize: "1Gi",
|
expectedSize: "1Gi",
|
||||||
nodeName: node.Name,
|
nodeName: node.Name,
|
||||||
|
attach: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,6 +198,7 @@ func (g *gcePDCSIDriver) createStorageClassTest(node v1.Node) storageClassTest {
|
|||||||
claimSize: "5Gi",
|
claimSize: "5Gi",
|
||||||
expectedSize: "5Gi",
|
expectedSize: "5Gi",
|
||||||
nodeName: node.Name,
|
nodeName: node.Name,
|
||||||
|
attach: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user