Skip to content

Commit

Permalink
Merge pull request #528 from sashrith/pod_fix
Browse files Browse the repository at this point in the history
pod gcr image fix
  • Loading branch information
k8s-ci-robot authored Dec 17, 2020
2 parents 41fac33 + 195c203 commit 68d3ebc
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 42 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/binding_modes_with_topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ var _ = ginkgo.Describe("[csi-topology-vanilla] Topology-Aware-Provisioning-With
gomega.Expect(err).NotTo(gomega.HaveOccurred(), fmt.Sprintf("Failed to find the volume in pending state with err: %v", err))

ginkgo.By("Creating a pod")
pod, err = fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod, err = createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By("Expect claim to be in Bound state and provisioning volume passes")
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/csi_static_provisioning_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ var _ = ginkgo.Describe("Basic Static Provisioning", func() {
ginkgo.By("Creating the Pod")
var pvclaims []*v1.PersistentVolumeClaim
pvclaims = append(pvclaims, pvc)
pod, err := fpod.CreatePod(client, namespace, nil, pvclaims, false, "")
pod, err := createPod(client, namespace, nil, pvclaims, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -547,7 +547,7 @@ var _ = ginkgo.Describe("Basic Static Provisioning", func() {
verifyBidirectionalReferenceOfPVandPVC(ctx, client, pvc, pv, fcdID)

ginkgo.By("Creating pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())
time.Sleep(time.Duration(60) * time.Second)
podName := pod.GetName
Expand Down Expand Up @@ -634,7 +634,7 @@ var _ = ginkgo.Describe("Basic Static Provisioning", func() {
verifyBidirectionalReferenceOfPVandPVC(ctx, client, pvc, pv, fcdID)

ginkgo.By("Creating pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())
time.Sleep(time.Duration(60) * time.Second)
podName := pod.GetName
Expand Down Expand Up @@ -731,7 +731,7 @@ var _ = ginkgo.Describe("Basic Static Provisioning", func() {
verifyBidirectionalReferenceOfPVandPVC(ctx, client, pvc, pv, fcdID)

ginkgo.By("Creating pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())
time.Sleep(time.Duration(60) * time.Second)
podName := pod.GetName
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/data_persistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ var _ = ginkgo.Describe("Data Persistence", func() {
}()

ginkgo.By("Creating pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -203,7 +203,7 @@ var _ = ginkgo.Describe("Data Persistence", func() {
}

ginkgo.By("Creating a new pod using the same volume")
pod, err = fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err = createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -344,7 +344,7 @@ var _ = ginkgo.Describe("Data Persistence", func() {
verifyBidirectionalReferenceOfPVandPVC(ctx, client, pvc, pv, fcdID)

ginkgo.By("Creating pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -375,7 +375,7 @@ var _ = ginkgo.Describe("Data Persistence", func() {
gomega.Expect(err).To(gomega.HaveOccurred(), fmt.Sprintf("PodVM with vmUUID: %s still exists. So volume: %s is not detached from the PodVM", vmUUID, pv.Spec.CSI.VolumeHandle))

ginkgo.By("Creating a new pod using the same volume")
pod, err = fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err = createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/e2e_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const (
e2eTestPassword = "E2E-test-password!23"
vsphereCloudProviderConfiguration = "vsphere-cloud-provider.conf"
svOperationTimeout = 240 * time.Second
busyBoxImageOnGcr = "gcr.io/google_containers/busybox:1.27"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/gc_block_volume_expansion.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
ginkgo.It("Verify offline expansion triggers FS resize", func() {
// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -232,7 +232,7 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {

// Create a new POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating a new pod to attach PV again to the node")
pod, err = fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err = createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume after expansion: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -318,7 +318,7 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
defer cancel()
// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -425,7 +425,7 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {

// Create a new POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating a new pod to attach PV again to the node")
pod, err = fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err = createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume after expansion: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/labelupdates.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ var _ bool = ginkgo.Describe("[csi-block-vanilla] label-updates", func() {
}()

ginkgo.By("Creating pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvc}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/operationstorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var _ = utils.SIGDescribe("[csi-block-vanilla] Volume Operations Storm", func()
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By("Creating pod to attach PVs to the node")
pod, err := fpod.CreatePod(client, namespace, nil, pvclaims, false, "")
pod, err := createPod(client, namespace, nil, pvclaims, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())
defer func() {
err = client.CoreV1().Pods(namespace).Delete(ctx, pod.Name, *metav1.NewDeleteOptions(0))
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/partial_topology_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var _ = ginkgo.Describe("[csi-topology-vanilla] Topology-Aware-Provisioning-With
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By("Creating a pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down Expand Up @@ -173,7 +173,7 @@ var _ = ginkgo.Describe("[csi-topology-vanilla] Topology-Aware-Provisioning-With
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By("Creating a pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/provision_with_multiple_zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ var _ = ginkgo.Describe("[csi-topology-vanilla] Topology-Aware-Provisioning-With
gomega.Expect(strings.Contains(topologyWithSharedDS, pvZone)).To(gomega.BeTrue(), fmt.Sprintf("Topology with shared datatore %q does not contain zone in which volume is provisioned: %q", topologyWithSharedDS, pvZone))

ginkgo.By("Creating a pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume: %s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/storagepolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func verifyStoragePolicyBasedVolumeProvisioning(f *framework.Framework, client c
gomega.Expect(storagePolicyExists).To(gomega.BeTrue(), "storage policy verification failed")

ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

var vmUUID string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: nginx
image: nginx:1.15-alpine
image: k8s.gcr.io/nginx-slim:0.8
ports:
- containerPort: 80
name: web
Expand Down
23 changes: 22 additions & 1 deletion tests/e2e/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ func GetPodSpecByUserID(ns string, nodeSelector map[string]string, pvclaims []*v
Containers: []v1.Container{
{
Name: "write-pod",
Image: framework.BusyBoxImage,
Image: busyBoxImageOnGcr,
Command: []string{"/bin/sh"},
Args: []string{"-c", command},
SecurityContext: &v1.SecurityContext{
Expand Down Expand Up @@ -1351,3 +1351,24 @@ func DeleteStatefulPodAtIndex(client clientset.Interface, index int, ss *apps.St
}

}

// createPod with given claims based on node selector
func createPod(client clientset.Interface, namespace string, nodeSelector map[string]string, pvclaims []*v1.PersistentVolumeClaim, isPrivileged bool, command string) (*v1.Pod, error) {
pod := fpod.MakePod(namespace, nodeSelector, pvclaims, isPrivileged, command)
pod.Spec.Containers[0].Image = busyBoxImageOnGcr
pod, err := client.CoreV1().Pods(namespace).Create(context.TODO(), pod, metav1.CreateOptions{})
if err != nil {
return pod, fmt.Errorf("pod Create API error: %v", err)
}
// Waiting for pod to be running
err = fpod.WaitForPodNameRunningInNamespace(client, pod.Name, namespace)
if err != nil {
return pod, fmt.Errorf("pod %q is not Running: %v", pod.Name, err)
}
// get fresh pod info
pod, err = client.CoreV1().Pods(namespace).Get(context.TODO(), pod.Name, metav1.GetOptions{})
if err != nil {
return pod, fmt.Errorf("pod Get API error: %v", err)
}
return pod, nil
}
2 changes: 1 addition & 1 deletion tests/e2e/volume_provisioning_with_topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var _ = ginkgo.Describe("[csi-topology-vanilla] Basic-Topology-Aware-Provisionin
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By("Creating a pod")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By(fmt.Sprintf("Verify volume:%s is attached to the node: %s", pv.Spec.CSI.VolumeHandle, pod.Spec.NodeName))
Expand Down
9 changes: 5 additions & 4 deletions tests/e2e/vsphere_file_volume_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,11 @@ var _ = ginkgo.Describe("[csi-file-vanilla] Basic Testing", func() {
ginkgo.By("Expect claim to fail as the datastore URL mentioned in Storage class does not match any of the URLs mentioned in TargetvSANFileShareDatastoreURLs")
err = fpv.WaitForPersistentVolumeClaimPhase(v1.ClaimBound, client, pvclaim.Namespace, pvclaim.Name, framework.Poll, time.Minute/2)
gomega.Expect(err).To(gomega.HaveOccurred())
expectedErrMsg := "Non-vsan datastores type VMFS in createSpecs"
ginkgo.By(fmt.Sprintf("Expected failure message: %+q", expectedErrMsg))
isFailureFound := checkEventsforError(client, namespace, metav1.ListOptions{FieldSelector: fmt.Sprintf("involvedObject.name=%s", pvclaim.Name)}, expectedErrMsg)
gomega.Expect(isFailureFound).To(gomega.BeTrue(), "Unable to verify pvc create failure")

eventList, _ := client.CoreV1().Events(namespace).List(ctx, metav1.ListOptions{FieldSelector: fmt.Sprintf("involvedObject.name=%s", pvclaim.Name)})
for _, item := range eventList.Items {
framework.Logf(fmt.Sprintf(item.Message))
}
})

})
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/vsphere_file_volume_basic_mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func invokeTestForCreateFileVolumeAndMount(f *framework.Framework, client client

//Create Pod1 with pvc created above
ginkgo.By("Create Pod1 with pvc created above")
pod1, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod1, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
gomega.Expect(err).NotTo(gomega.HaveOccurred())

//cleanup for Pod1
Expand Down Expand Up @@ -251,7 +251,7 @@ func invokeTestForCreateFileVolumeAndMount(f *framework.Framework, client client
if secondPodForNonRootUser {
pod2, err = CreatePodByUserID(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "", userid)
} else {
pod2, err = fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
pod2, err = createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, "")
}
gomega.Expect(err).NotTo(gomega.HaveOccurred())

Expand Down
10 changes: 5 additions & 5 deletions tests/e2e/vsphere_volume_expansion.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func invokeTestForVolumeExpansion(f *framework.Framework, client clientset.Inter

// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

var vmUUID string
Expand Down Expand Up @@ -364,7 +364,7 @@ func invokeTestForVolumeExpansionWithFilesystem(f *framework.Framework, client c

// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

pv := persistentvolumes[0]
Expand Down Expand Up @@ -443,7 +443,7 @@ func invokeTestForVolumeExpansionWithFilesystem(f *framework.Framework, client c

// Create a new POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating a new pod to attach PV again to the node")
pod, err = fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err = createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

pv = persistentvolumes[0]
Expand Down Expand Up @@ -564,7 +564,7 @@ func invokeTestForInvalidOnlineVolumeExpansion(f *framework.Framework, client cl

// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

pv := persistentvolumes[0]
Expand Down Expand Up @@ -856,7 +856,7 @@ func invokeTestForExpandVolumeMultipleTimes(f *framework.Framework, client clien

// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

var vmUUID string
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/vsphere_volume_fstype.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func invokeTestForFstype(f *framework.Framework, client clientset.Interface, nam

// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

pv := persistentvolumes[0]
Expand Down Expand Up @@ -184,7 +184,7 @@ func invokeTestForInvalidFstype(f *framework.Framework, client clientset.Interfa

// Create a POD to use this PVC, and verify volume has been attached
ginkgo.By("Creating pod to attach PV to the node")
pod, err := fpod.CreatePod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
pod, err := createPod(client, namespace, nil, []*v1.PersistentVolumeClaim{pvclaim}, false, execCommand)
gomega.Expect(err).To(gomega.HaveOccurred())

pv := persistentvolumes[0]
Expand Down
Loading

0 comments on commit 68d3ebc

Please sign in to comment.