diff --git a/pkg/commands/kustfile/kustomizationfile.go b/pkg/commands/kustfile/kustomizationfile.go index 2328b6417..bcd4a0b78 100644 --- a/pkg/commands/kustfile/kustomizationfile.go +++ b/pkg/commands/kustfile/kustomizationfile.go @@ -67,6 +67,7 @@ func determineFieldOrder() []string { "GeneratorOptions", "Vars", "Images", + "Replicas", "Configurations", "Generators", "Transformers", diff --git a/pkg/commands/kustfile/kustomizationfile_test.go b/pkg/commands/kustfile/kustomizationfile_test.go index 436fc4ea1..0f82a163a 100644 --- a/pkg/commands/kustfile/kustomizationfile_test.go +++ b/pkg/commands/kustfile/kustomizationfile_test.go @@ -46,6 +46,7 @@ func TestFieldOrder(t *testing.T) { "GeneratorOptions", "Vars", "Images", + "Replicas", "Configurations", "Generators", "Transformers",