Skip to content

Commit 6a95d6b

Browse files
authored
add warnning message if NSS operator unable to patch CSV (#377)
* add warnning message if nss unable to patch CSV Signed-off-by: Allen Li <[email protected]> * add error handle Signed-off-by: Allen Li <[email protected]> --------- Signed-off-by: Allen Li <[email protected]>
1 parent d3963f6 commit 6a95d6b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

controllers/namespacescope_controller.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,14 @@ func (r *NamespaceScopeReconciler) CheckListDifference(ctx context.Context, inst
11811181
if err := r.Client.Status().Patch(ctx, instance, client.MergeFrom(originalInstance)); err != nil {
11821182
return ctrl.Result{}, err
11831183
}
1184+
1185+
csvList := util.GetListDifference(managedCSVList, patchedCSVList)
1186+
if len(csvList) != 0 {
1187+
for _, c := range csvList {
1188+
klog.Warningf("Unable to patch ClusterServiceVersion %s ", c)
1189+
}
1190+
}
1191+
11841192
return ctrl.Result{RequeueAfter: 180 * time.Second}, nil
11851193
}
11861194

0 commit comments

Comments
 (0)