1
0
mirror of https://github.com/rancher/types.git synced 2025-09-13 13:33:06 +00:00

Add schemas to workload context

This commit is contained in:
Darren Shepherd
2018-01-22 20:35:00 -07:00
parent f999bb990d
commit d917424f3f

View File

@@ -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)