use ObjectMeta instead of name and namespace fields

This commit is contained in:
Seth Pollack
2019-06-29 23:28:56 -04:00
parent 558be8b923
commit 2126b6cf23
18 changed files with 77 additions and 54 deletions

View File

@@ -16,11 +16,10 @@ import (
)
type InventoryTransformerPlugin struct {
ldr ifc.Loader
rf *resmap.Factory
Policy string `json:"policy,omitempty" yaml:"policy,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
ldr ifc.Loader
rf *resmap.Factory
types.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
Policy string `json:"policy,omitempty" yaml:"policy,omitempty"`
}
//noinspection GoUnusedGlobalVariable