1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 12:48:45 +00:00

Fix some PV types

This commit is contained in:
Darren Shepherd
2018-03-19 14:58:12 -07:00
parent ed47e37c35
commit cebb13fdcc
2 changed files with 21 additions and 0 deletions

View File

@@ -41,6 +41,9 @@ func namespaceTypes(schemas *types.Schemas) *types.Schemas {
func persistentVolumeTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
MustImport(&Version, v1.PersistentVolumeSpec{}, struct {
StorageClassName *string `json:"storageClassName,omitempty" norman:"type=reference[storageClass]"`
}{}).
MustImport(&Version, v1.PersistentVolume{})
}