Skip to content

Commit

Permalink
quote in configmap (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
teru01 authored May 16, 2024
1 parent c36e618 commit 1dd701e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down

0 comments on commit 1dd701e

Please sign in to comment.