Skip to content

Commit

Permalink
apply @hiddeco feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
  • Loading branch information
krancour committed Nov 14, 2024
1 parent 1322283 commit 5bdadb9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/directives/argocd_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,11 +816,12 @@ func (a *argocdUpdater) buildKustomizeImagesForAppSource(
for i := range update.Images {
imageUpdate := &update.Images[i]
var digest, tag string
if imageUpdate.Digest != "" {
switch {
case imageUpdate.Digest != "":
digest = imageUpdate.Digest
} else if imageUpdate.Tag != "" {
case imageUpdate.Tag != "":
tag = imageUpdate.Tag
} else {
default:
desiredOrigin := getDesiredOrigin(stepCfg, imageUpdate)
image, err := freight.FindImage(
ctx,
Expand Down

0 comments on commit 5bdadb9

Please sign in to comment.