mirror of
https://github.com/rancher/types.git
synced 2025-09-16 06:49:21 +00:00
Remove pivotmapper
This commit is contained in:
@@ -451,9 +451,6 @@ func podTypes(schemas *types.Schemas) *types.Schemas {
|
||||
&m.Embed{Field: "securityContext"},
|
||||
&m.Drop{Field: "serviceAccount"},
|
||||
).
|
||||
AddMapperForType(&Version, v1.ResourceRequirements{},
|
||||
mapper.PivotMapper{Plural: true},
|
||||
).
|
||||
AddMapperForType(&Version, v1.Pod{},
|
||||
&m.AnnotationField{Field: "description"},
|
||||
&m.AnnotationField{Field: "publicEndpoints", List: true},
|
||||
@@ -640,9 +637,6 @@ func volumeTypes(schemas *types.Schemas) *types.Schemas {
|
||||
Field: "kind",
|
||||
},
|
||||
).
|
||||
AddMapperForType(&Version, v1.ResourceRequirements{},
|
||||
mapper.PivotMapper{Plural: true},
|
||||
).
|
||||
AddMapperForType(&Version, v1.PersistentVolumeClaimVolumeSource{},
|
||||
&m.Move{From: "claimName", To: "persistentVolumeClaimName"},
|
||||
).
|
||||
|
Reference in New Issue
Block a user