1
0
mirror of https://github.com/rancher/types.git synced 2025-05-08 07:06:19 +00:00

Correct schedulerName, priority and priorityClassName fields

This commit is contained in:
gitlawr 2019-07-10 12:06:18 +08:00 committed by Alena Prokharchyk
parent c8c22eccbd
commit d5b5108ddb

View File

@ -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"},