Skip to content

Commit

Permalink
Merge pull request #5142 from fluxcd/fix-create-cmd
Browse files Browse the repository at this point in the history
Fix create command always using imageRepositoryType
  • Loading branch information
matheuscscp authored Jan 13, 2025
2 parents 0cc68e0 + 055958d commit 16ae23a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/flux/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (names apiType) upsertAndWait(object upsertWaitable, mutate func() error) e
logger.Generatef("generating %s", names.kind)
logger.Actionf("applying %s", names.kind)

namespacedName, err := imageRepositoryType.upsert(ctx, kubeClient, object, mutate)
namespacedName, err := names.upsert(ctx, kubeClient, object, mutate)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/flux/testdata/image/create_image_policy.golden
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
✚ generating ImagePolicy
► applying ImagePolicy
ImageRepository created
ImagePolicy created
◎ waiting for ImagePolicy reconciliation
✔ ImagePolicy reconciliation completed

0 comments on commit 16ae23a

Please sign in to comment.