Use CrossNamespaceSourceReference for image automations

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2022-02-01 12:12:59 +02:00
parent e9d6f271b5
commit 141d71c39d
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF

View file

@ -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,
},