diff --git a/cmd/flux/create_image_update.go b/cmd/flux/create_image_update.go index 2adb562c29f668aa8e65ea7142734ce54c390a69..44c2f73072166a9a9c1a071a403808fdb51796d1 100644 --- a/cmd/flux/create_image_update.go +++ b/cmd/flux/create_image_update.go @@ -112,7 +112,7 @@ func createImageUpdateRun(cmd *cobra.Command, args []string) error { Labels: labels, }, Spec: autov1.ImageUpdateAutomationSpec{ - SourceRef: autov1.SourceReference{ + SourceRef: autov1.CrossNamespaceSourceReference{ Kind: sourcev1.GitRepositoryKind, Name: imageUpdateArgs.gitRepoRef, },