@@ -177,7 +177,8 @@ func (r *GitOpsSyncResource) syncResources() error {
177
177
178
178
apps , related , err := r .getArgoAppsFromSearch (queryManagedClustersStr , "" , "" )
179
179
if err != nil {
180
- return err
180
+ klog .Info (err .Error ())
181
+ continue
181
182
}
182
183
183
184
for _ , app := range apps {
@@ -190,16 +191,16 @@ func (r *GitOpsSyncResource) syncResources() error {
190
191
191
192
// Skip application that don't belong to an appset
192
193
if hostingAppsetName == nil {
193
- klog .V ( 1 ). Infof ("skip application %v/%v on cluster %v, it does not belong to an appset" , itemmap ["namespace" ], itemmap ["name" ], managedClusterName )
194
- return nil
194
+ klog .Infof ("skip application %v/%v on cluster %v, it does not belong to an appset" , itemmap ["namespace" ], itemmap ["name" ], managedClusterName )
195
+ continue
195
196
}
196
197
197
198
appsetNsn := strings .Split (hostingAppsetName .(string ), "/" )
198
199
if len (appsetNsn ) != 3 {
199
200
err := fmt .Errorf ("_hostingResource is not in the correct format: %v" , hostingAppsetName )
200
201
klog .Info (err .Error ())
201
202
202
- return err
203
+ continue
203
204
}
204
205
205
206
reportKey := appsetNsn [1 ] + "_" + appsetNsn [2 ]
@@ -230,7 +231,7 @@ func (r *GitOpsSyncResource) syncResources() error {
230
231
report .Statuses .Resources = append (relatedResources , unhealthyResources ... )
231
232
}
232
233
233
- klog .V ( 1 ). Infof ("resources for app (%v/%v): %v" , itemmap ["namespace" ], itemmap ["name" ], report .Statuses .Resources )
234
+ klog .Infof ("resources for app (%v/%v): %v" , itemmap ["namespace" ], itemmap ["name" ], report .Statuses .Resources )
234
235
}
235
236
}
236
237
}
0 commit comments