# ... other imports
from .kube import PROMON_KUBE
# ... all other codes ...
def build_kube(self, hook) -> dict:
return hook.service_glob("PROMON_KUBE", PROMON_KUBE)
since promon is included on keep_alive, JsOrcService will include it on interval_check
during interval_check, JsOrcService will try to add every kube configuration from PROMON_KUBE grouped by commands
on first interval_check, it is expected to ignore the rerun of the promon service because the pods that has been generated is not yet fully initialized and running.
subsequent interval_check should have the ability to restart the promon service since pods for prometheus server should be available by that time (this may vary depends on network or server)
if promon is now running it will now be ignored on next interval_check