From 2e7ad48b445fc2efc0e487839a27d97c270c7a60 Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Thu, 29 Aug 2019 14:41:03 -0700 Subject: [PATCH] properly omitempty for 'inventory' in 'kustomize' with the current 'yaml:"inventory:omitempty"', 'inventory:omitempty' is used as the literal name for the yaml field --- pkg/types/kustomization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/types/kustomization.go b/pkg/types/kustomization.go index 605a5f2c6..7104ad335 100644 --- a/pkg/types/kustomization.go +++ b/pkg/types/kustomization.go @@ -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