Make APIGroup optional and modify validation

This commit is contained in:
Xing Yang
2018-09-07 11:07:47 -07:00
parent ae8a046985
commit 6ec1ebd6ce
4 changed files with 27 additions and 11 deletions

View File

@@ -726,7 +726,7 @@ func testVolumeSnapshotDataSourceInSpec(name string, kind string, apiGroup strin
},
StorageClassName: &scName,
DataSource: &core.TypedLocalObjectReference{
APIGroup: apiGroup,
APIGroup: &apiGroup,
Kind: kind,
Name: name,
},