Skip to content

Commit afa0f12

Browse files
committed
Adds ParsingError field
1 parent 34ba3b4 commit afa0f12

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

pkg/controller/operators/catalog/operator.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,8 @@ func (o *Operator) syncRegistryServer(logger *logrus.Entry, in *v1alpha1.Catalog
724724
// requeue the catalog sync based on the polling interval, for accurate syncs of catalogs with polling enabled
725725
if out.Spec.UpdateStrategy != nil {
726726
if out.Spec.UpdateStrategy.RegistryPoll != nil {
727-
if out.Spec.UpdateStrategy.RegistryPoll.Interval.Duration == queueinformer.DefaultResyncPeriod {
727+
if out.Spec.UpdateStrategy.RegistryPoll.Interval.Duration == queueinformer.DefaultResyncPeriod && out.Spec.UpdateStrategy.RegistryPoll.ParsingError != nil {
728+
out.SetError(v1alpha1.CatalogSourceIntervalInvalidError, out.Spec.UpdateStrategy.RegistryPoll.ParsingError)
728729
if _, err := o.client.OperatorsV1alpha1().CatalogSources(out.GetNamespace()).Update(context.TODO(), out, metav1.UpdateOptions{}); err != nil {
729730
logger.Errorf("error while setting catalogsource interval - %v", err)
730731
return

vendor/github.com/operator-framework/api/pkg/operators/v1alpha1/catalogsource_types.go

+9-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)