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) {