From eaae7af5fe9547ad44587b43e297d8ded97cea9a Mon Sep 17 00:00:00 2001 From: Richard Marshall Date: Mon, 5 Aug 2019 23:58:19 -0700 Subject: [PATCH] Retain replicas field in edit marshal path --- pkg/commands/kustfile/kustomizationfile.go | 1 + pkg/commands/kustfile/kustomizationfile_test.go | 1 + 2 files changed, 2 insertions(+) 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",