From d5b5108ddb19c838e56d58ed26ef7686ade523d2 Mon Sep 17 00:00:00 2001 From: gitlawr Date: Wed, 10 Jul 2019 12:06:18 +0800 Subject: [PATCH] Correct schedulerName, priority and priorityClassName fields --- apis/project.cattle.io/v3/schema/schema.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apis/project.cattle.io/v3/schema/schema.go b/apis/project.cattle.io/v3/schema/schema.go index 22ab1717..c97f3cd9 100644 --- a/apis/project.cattle.io/v3/schema/schema.go +++ b/apis/project.cattle.io/v3/schema/schema.go @@ -527,6 +527,9 @@ func podTypes(schemas *types.Schemas) *types.Schemas { AddMapperForType(&Version, v1.PodSpec{}, mapper.InitContainerMapper{}, mapper.SchedulingMapper{}, + m.Move{From: "priority", To: "scheduling/priority", DestDefined: true}, + m.Move{From: "priorityClassName", To: "scheduling/priorityClassName", DestDefined: true}, + m.Move{From: "schedulerName", To: "scheduling/scheduler", DestDefined: true}, m.Move{From: "tolerations", To: "scheduling/tolerate", DestDefined: true}, &m.Embed{Field: "securityContext"}, &m.Drop{Field: "serviceAccount"},