1
0
mirror of https://github.com/rancher/norman.git synced 2025-08-01 23:41:24 +00:00

MetadataMapper cleanup

This commit is contained in:
Darren Shepherd 2018-02-07 13:15:53 -07:00
parent 339468f119
commit d95fc9147f

View File

@ -8,9 +8,7 @@ func NewMetadataMapper() types.Mapper {
return types.Mappers{
ChangeType{Field: "name", Type: "dnsLabel"},
Drop{Field: "generateName"},
//Move{From: "selfLink", To: "resourcePath"},
Drop{Field: "selfLink"},
//Drop{"ownerReferences"},
Move{From: "uid", To: "uuid"},
Drop{Field: "resourceVersion"},
Drop{Field: "generation"},
@ -18,13 +16,12 @@ func NewMetadataMapper() types.Mapper {
Move{From: "deletionTimestamp", To: "removed"},
Drop{Field: "deletionGracePeriodSeconds"},
Drop{Field: "initializers"},
//Drop{"finalizers"},
Drop{Field: "clusterName"},
ReadOnly{Field: "*"},
Access{
Fields: map[string]string{
"name": "c",
"namespace": "cu",
"namespace": "c",
"labels": "cu",
"annotations": "cu",
},