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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user