Skip to content

Commit

Permalink
Merge pull request #262 from fluxcd/fix-setters-image-trim
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddeco authored Nov 11, 2021
2 parents ae455c9 + 3619625 commit 1f5d134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/update/setters.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func UpdateWithSetters(tracelog logr.Logger, inpath, outpath string, policies []
// annoyingly, neither the library imported above, nor an
// alternative I found, will yield the original image name;
// this is an easy way to get it
name := strings.TrimRight(image, ":"+tag)
name := strings.TrimSuffix(image, ":"+tag)

imageSetter := fmt.Sprintf("%s:%s", policy.GetNamespace(), policy.GetName())
tracelog.Info("adding setter", "name", imageSetter)
Expand Down

0 comments on commit 1f5d134

Please sign in to comment.