Closed as not planned
Description
Describe the bug
Redo informer start() triggers all previous events. This is being done inside setTimeout periodically as a workaround since informer silently stop receiving events (see: #596)
** Client Version **
1.0.0-rc4
** Server Version **
e.g. 1.26.5
To Reproduce
- MakeInformer
- Start informer
- Set timeout starting informer in 30s
- Trigger an update event in k8s for the informer to catch it
- Wait for timeout to start informer again
- See the update event in step 4 being reproduce again
Expected behavior
A clear and concise description of what you expected to happen.
** Example Code**
const timeoutDelay = 1000 * 30;
const timeout = setTimeout(() => {
if (informer) {
informer
.start()
.then(() => {
console.log("Informer refresh connection");
})
.catch((err) => {
console.log("Informer refresh error");
console.error(err);
});
}
}, timeoutDelay);
Environment (please complete the following information):
- OS: linux
- NodeJS Version: v18.14.2
- Cloud runtime: EKS
Additional context
This is probably a secudary issue, being the primary that informer silently stop reproducing events, like in #596