Skip to content

Commit

Permalink
quote in configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
teru01 committed May 15, 2024
1 parent c36e618 commit e846277
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 e846277

Please sign in to comment.