1
0
mirror of https://github.com/rancher/types.git synced 2025-08-31 04:40:56 +00:00

Add PersistentVolume

This commit is contained in:
Darren Shepherd
2017-12-28 08:52:45 -07:00
parent 9060c928ed
commit cfe57e1282

View File

@@ -18,7 +18,8 @@ var (
Schemas = factory.Schemas(&Version).
Init(namespaceTypes).
Init(nodeTypes)
Init(nodeTypes).
Init(volumeTypes)
)
func namespaceTypes(schemas *types.Schemas) *types.Schemas {
@@ -49,3 +50,8 @@ func nodeTypes(schemas *types.Schemas) *types.Schemas {
}{}).
MustImport(&Version, v1.Node{})
}
func volumeTypes(schemas *types.Schemas) *types.Schemas {
return schemas.
MustImport(&Version, v1.PersistentVolume{})
}