diff --git a/kustomize/commands/internal/kustfile/kustomizationfile.go b/kustomize/commands/internal/kustfile/kustomizationfile.go index 0d313d14c..a0c544537 100644 --- a/kustomize/commands/internal/kustfile/kustomizationfile.go +++ b/kustomize/commands/internal/kustfile/kustomizationfile.go @@ -65,6 +65,7 @@ func determineFieldOrder() []string { "Transformers", "Inventory", "Components", + "OpenAPI", } // Add deprecated fields here. diff --git a/kustomize/commands/internal/kustfile/kustomizationfile_test.go b/kustomize/commands/internal/kustfile/kustomizationfile_test.go index 032605730..8e6475d36 100644 --- a/kustomize/commands/internal/kustfile/kustomizationfile_test.go +++ b/kustomize/commands/internal/kustfile/kustomizationfile_test.go @@ -47,6 +47,7 @@ func TestFieldOrder(t *testing.T) { "Transformers", "Inventory", "Components", + "OpenAPI", } actual := determineFieldOrder() if len(expected) != len(actual) {