From b1b1384724d6808dd1d7643214a49b2df4d0048c Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 23 Mar 2018 17:31:46 -0700 Subject: [PATCH] Add configmap to project --- apis/project.cattle.io/v3/schema/schema.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index 46bf36e8..5d2216c4 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -27,6 +27,7 @@ var ( Schemas = factory.Schemas(&Version). // volume before pod types. pod types uses volume things, so need to register mapper Init(volumeTypes). + Init(configMapTypes). Init(ingressTypes). Init(secretTypes). Init(serviceTypes). @@ -41,12 +42,11 @@ var ( Init(podTemplateSpecTypes). Init(workloadTypes). Init(appTypes). - Init(configMapTypes). Init(namespaceComposeType) ) func configMapTypes(schemas *types.Schemas) *types.Schemas { - return schemas.MustImport(&Version, v1.ConfigMap{}) + return schemas.MustImport(&Version, v1.ConfigMap{}, projectOverride{}) } type DeploymentConfig struct {