From e8462778e95205d951f320827027769d133f2a3c Mon Sep 17 00:00:00 2001 From: ono-teruya <27873650+teru01@users.noreply.github.com> Date: Wed, 15 May 2024 18:41:59 +0900 Subject: [PATCH] quote in configmap --- flow/process.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flow/process.go b/flow/process.go index 64abd3d..e8b99f0 100644 --- a/flow/process.go +++ b/flow/process.go @@ -82,6 +82,9 @@ func (f *Flow) process(ctx context.Context, app *Application, version string) Pu for _, key := range app.AdditionalRewriteKeys { release.MakeChangeFunc(ctx, client, filePath, fmt.Sprintf(additionalRewriteKeysRegexTemplate, key), func(m regexp2.Match) string { oldVersionSet[m.GroupByName("version").String()] = nil + if f.enableVersionQuote { + return fmt.Sprintf("%s: \"%s\"", key, version) + } return fmt.Sprintf("%s: %s", key, version) }) }