From 0f6c6c15a8d63116ad56f72b7934d2e4592b1689 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Fri, 15 May 2020 14:02:35 +0530 Subject: [PATCH] e2e: remove explict setting of kind and apiversion we dont need to explictly set the kind and apiversion in the snapshot class object as it is already set in snapshotclass.yaml file Signed-off-by: Madhu Rajanna --- e2e/snapshot.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/e2e/snapshot.go b/e2e/snapshot.go index d4f57c908..3d14e9012 100644 --- a/e2e/snapshot.go +++ b/e2e/snapshot.go @@ -27,8 +27,6 @@ type snapInfo struct { func getSnapshotClass(path string) snapapi.VolumeSnapshotClass { sc := snapapi.VolumeSnapshotClass{} - sc.Kind = "VolumeSnapshotClass" - sc.APIVersion = "snapshot.storage.k8s.io/v1beta1" err := unmarshal(path, &sc) Expect(err).Should(BeNil()) return sc