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) {
435
435
return fmt .Errorf ("no reconciler for source type %s" , catsrc .Spec .SourceType )
436
436
}
437
437
438
+ healthy , err := reconciler .CheckRegistryServer (catsrc )
439
+ if err != nil {
440
+ return err
441
+ }
442
+
438
443
// 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 ) {
440
445
logger .Debug ("ensuring registry server" )
441
446
442
447
if err := reconciler .EnsureRegistryServer (out ); err != nil {
You can’t perform that action at this time.
0 commit comments