From ee57e9db12f51b8ecf9ecce3b730f5ddff77499a Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Thu, 23 Jul 2020 21:39:55 -0700 Subject: [PATCH] Retain components field in edit --- kustomize/internal/commands/kustfile/kustomizationfile.go | 1 + kustomize/internal/commands/kustfile/kustomizationfile_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/kustomize/internal/commands/kustfile/kustomizationfile.go b/kustomize/internal/commands/kustfile/kustomizationfile.go index 70a261372..f347e368a 100644 --- a/kustomize/internal/commands/kustfile/kustomizationfile.go +++ b/kustomize/internal/commands/kustfile/kustomizationfile.go @@ -59,6 +59,7 @@ func determineFieldOrder() []string { "Generators", "Transformers", "Inventory", + "Components", } // Add deprecated fields here. diff --git a/kustomize/internal/commands/kustfile/kustomizationfile_test.go b/kustomize/internal/commands/kustfile/kustomizationfile_test.go index 59c5f77b6..2f9e9e69b 100644 --- a/kustomize/internal/commands/kustfile/kustomizationfile_test.go +++ b/kustomize/internal/commands/kustfile/kustomizationfile_test.go @@ -39,6 +39,7 @@ func TestFieldOrder(t *testing.T) { "Generators", "Transformers", "Inventory", + "Components", } actual := determineFieldOrder() if len(expected) != len(actual) {