Skip to content

Commit

Permalink
Fix create command always using imageRepositoryType
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
  • Loading branch information
matheuscscp committed Jan 12, 2025
1 parent 0cc68e0 commit 055958d
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 055958d

Please sign in to comment.