mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 08:10:20 +00:00
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 <madhupr007@gmail.com>
This commit is contained in:
parent
686db53fde
commit
0f6c6c15a8
@ -27,8 +27,6 @@ type snapInfo struct {
|
|||||||
|
|
||||||
func getSnapshotClass(path string) snapapi.VolumeSnapshotClass {
|
func getSnapshotClass(path string) snapapi.VolumeSnapshotClass {
|
||||||
sc := snapapi.VolumeSnapshotClass{}
|
sc := snapapi.VolumeSnapshotClass{}
|
||||||
sc.Kind = "VolumeSnapshotClass"
|
|
||||||
sc.APIVersion = "snapshot.storage.k8s.io/v1beta1"
|
|
||||||
err := unmarshal(path, &sc)
|
err := unmarshal(path, &sc)
|
||||||
Expect(err).Should(BeNil())
|
Expect(err).Should(BeNil())
|
||||||
return sc
|
return sc
|
||||||
|
Loading…
Reference in New Issue
Block a user