properly omitempty for 'inventory' in 'kustomize'

with the current 'yaml:"inventory:omitempty"', 'inventory:omitempty' is used as the literal name for the yaml field
This commit is contained in:
Andrew Lavery
2019-08-29 14:41:03 -07:00
parent 6ead3b7b1f
commit 2e7ad48b44

View File

@@ -139,7 +139,7 @@ type Kustomization struct {
// Inventory appends an object that contains the record
// of all other objects, which can be used in apply, prune and delete
Inventory *Inventory `json:"inventory,omitempty" yaml:"inventory:omitempty"`
Inventory *Inventory `json:"inventory,omitempty" yaml:"inventory,omitempty"`
}
//go:generate stringer -type=GarbagePolicy