From d917424f3fe5c7f0f4df21bcbaaeea33b95e5b9f Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Mon, 22 Jan 2018 20:35:00 -0700 Subject: [PATCH] Add schemas to workload context --- config/context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/context.go b/config/context.go index 8e0d3f89..717f7c77 100644 --- a/config/context.go +++ b/config/context.go @@ -294,6 +294,10 @@ func NewWorkloadContext(config rest.Config, clusterName string) (*WorkloadContex context := &WorkloadContext{ RESTConfig: config, ClusterName: clusterName, + Schemas: types.NewSchemas(). + AddSchemas(managementSchema.Schemas). + AddSchemas(clusterSchema.Schemas). + AddSchemas(projectSchema.Schemas), } context.K8sClient, err = kubernetes.NewForConfig(&config)