Closed YunWZ closed 1 year ago
Type: bug report Regarding the code below:
//This method requires an AppName as a parameter func (r *CRDWatcher) HasAnySubscribedOfApp(app string) bool { r.updateMux.RLock() defer r.updateMux.RUnlock() _, exist := r.subscribedApps[app] return exist } func (r *CRDWatcher) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { //The actual parameter here is a namespace rather than an AppName if r.HasAnySubscribedOfApp(req.Namespace) { // Ignore unmatched namespace return ctrl.Result{Requeue: false, RequeueAfter: 0}, nil } //... }
HasAnySubscribedOfApp should correctly match the App
HasAnySubscribedOfApp
Issue Description
Type: bug report Regarding the code below:
Describe what happened
Describe what you expected to happen
HasAnySubscribedOfApp
should correctly match the AppHow to reproduce it (as minimally and precisely as possible)
Tell us your environment
Anything else we need to know?