1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 13:18:20 +00:00

convert default storageCLassName to empty

This commit is contained in:
Daishan Peng
2018-04-29 23:03:53 -07:00
committed by Darren Shepherd
parent bb03350a4e
commit 7d8da4b6ef
2 changed files with 25 additions and 0 deletions

View File

@@ -669,6 +669,9 @@ func volumeTypes(schemas *types.Schemas) *types.Schemas {
"name",
}},
).
AddMapperForType(&Version, v1.PersistentVolumeClaim{},
mapper.PersistVolumeClaim{},
).
MustImport(&Version, v1.PersistentVolumeClaimVolumeSource{}, struct {
ClaimName string `norman:"type=reference[persistentVolumeClaim]"`
}{}).