Skip to content

Commit

Permalink
properly omitempty for 'inventory' in 'kustomize'
Browse files Browse the repository at this point in the history
with the current 'yaml:"inventory:omitempty"', 'inventory:omitempty' is used as the literal name for the yaml field
  • Loading branch information
laverya committed Aug 29, 2019
1 parent 6ead3b7 commit 2e7ad48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/types/kustomization.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e7ad48

Please sign in to comment.