Importing the `k8s.io/kubernetes/pkg/kubelet/metrics` package in the remote runtime implementation makes it harder to separate the functionalities at some later point in time. We now decouple both packages by extending the CRI API services to allow a callback on `GetContainerEvents`. This callback can be used to do additional work if the connection got established, because `GetContainerEvents` will go into blocking mode after that. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
16 KiB
16 KiB