File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
pkg/controller/operators/catalog Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -435,8 +435,13 @@ func (o *Operator) syncCatalogSources(obj interface{}) (syncError error) {
435435 return fmt .Errorf ("no reconciler for source type %s" , catsrc .Spec .SourceType )
436436 }
437437
438+ healthy , err := reconciler .CheckRegistryServer (catsrc )
439+ if err != nil {
440+ return err
441+ }
442+
438443 // If registry pod hasn't been created or hasn't been updated since the last configmap update, recreate it
439- if catsrc .Status .RegistryServiceStatus == nil || catsrc .Status .RegistryServiceStatus .CreatedAt .Before (& catsrc .Status .LastSync ) {
444+ if ! healthy || catsrc .Status .RegistryServiceStatus == nil || catsrc .Status .RegistryServiceStatus .CreatedAt .Before (& catsrc .Status .LastSync ) {
440445 logger .Debug ("ensuring registry server" )
441446
442447 if err := reconciler .EnsureRegistryServer (out ); err != nil {
You can’t perform that action at this time.
0 commit comments