shell-operator
shell-operator copied to clipboard
Enable EnableKubeEventCb in dynamicaly created resource informer
Overview
Dynamic resource informer created with disabled eventCbEnabled flag, so created resources in new namespace does not handled.
What this PR does / why we need it
Fix #379 issue
Oh, #379! Thanks for the PR. It seems you've got the root cause: creating new namespaces after Synchronization leads to informers with disabled callbacks. But adding new informer with enabled callback is not correct. Callback should be enabled if EnableKubeEventCb was called on monitor (this happens after Synchronization). So some kind of additonal flag is required.
Fixed in #411, available since v1.0.11