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

Mapper for workload annotations

This commit is contained in:
Alena Prokharchyk
2018-03-01 16:56:09 -08:00
parent 773c8f572a
commit ce5bd28bf3
2 changed files with 26 additions and 0 deletions

View File

@@ -668,6 +668,7 @@ func NewWorkloadTypeMapper() types.Mapper {
&m.Move{From: "metadata/annotations", To: "annotations", NoDeleteFromField: true},
&m.Drop{Field: "metadata"},
mapper.ContainerPorts{},
mapper.WorkloadAnnotations{},
&m.AnnotationField{Field: "publicEndpoints", List: true},
}
}