Skip to content

Commit 8274b7a

Browse files
authored
make catalogsource update interval 24h (#120)
1 parent 532fdcc commit 8274b7a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/catalog/reconcile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func Reconcile(ctx context.Context, c client.Client, scheme *runtime.Scheme, rel
5151
op, err := controllerutil.CreateOrUpdate(ctx, c, catalogSource, func() error {
5252
catalogSource.Spec.Image = v.Image
5353
catalogSource.Spec.SourceType = operatorhubv1alpha1.SourceTypeGrpc
54+
catalogSource.Spec.UpdateStrategy.RegistryPoll = &operatorhubv1alpha1.RegistryPoll{RawInterval: "24h"}
5455
// Set the controller as the owner so that the CatalogSource is deleted along with the CR
5556
return controllerutil.SetControllerReference(relocation, catalogSource, scheme)
5657
})

0 commit comments

Comments
 (0)