There is a bug in current implementation of MDC backend - when websocket connection is requested for mobile apps, backend is not notified about changes in secrets anymore. It needs to watch secrets so that it can update mobile apps with information about bound services. The problem is that there can be only one handler handling notifications about changes in watched resources with operator sdk. Also there is one another issue - if MDC goes down, user deletes some binding, then start MDC again, it won't update mobile-services.json as the backend was not notified about secret being deleted. The proposed change is to use kubernetes api for watching secrets instead of operator sdk. When backend is notified about change it should list all secrets and update information about bound services for all apps (if needed). This should solve both issues. |