From cfe57e1282f233f121d60cdfc4617767503ab238 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 28 Dec 2017 08:52:45 -0700 Subject: [PATCH] Add PersistentVolume --- apis/cluster.cattle.io/v3/schema/schema.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apis/cluster.cattle.io/v3/schema/schema.go b/apis/cluster.cattle.io/v3/schema/schema.go index d28e4609..8f570f76 100644 --- a/apis/cluster.cattle.io/v3/schema/schema.go +++ b/apis/cluster.cattle.io/v3/schema/schema.go @@ -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{}) +}