From cdfe5ebb78f7bd6ab73ad6609b69705b56dd95cc Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Thu, 28 Dec 2017 09:49:22 -0700 Subject: [PATCH] Add PVC --- apis/project.cattle.io/v3/schema/schema.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index 03832111..66b36899 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -24,6 +24,8 @@ var ( Schemas = factory.Schemas(&Version). // Namespace must be first Init(namespaceTypes). + // volume before pod types. pod types uses volume things, so need to register mapper + Init(volumeTypes). Init(ingressTypes). Init(secretTypes). Init(serviceTypes). @@ -369,4 +371,8 @@ func ingressTypes(schemas *types.Schemas) *types.Schemas { }{}). MustImport(&Version, v1beta1.Ingress{}, projectOverride{}) } + +func volumeTypes(schemas *types.Schemas) *types.Schemas { + return schemas. + MustImport(&Version, v1.PersistentVolumeClaim{}, projectOverride{}) }