mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
fix 'runtime.Object is nil'
This commit is contained in:
parent
ab08a1074f
commit
8058cee2c9
@ -84,6 +84,9 @@ func (k *k8sDiscover) discover(name string, callback CallbackUpdate) {
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case event := <-w.ResultChan():
|
||||
if event.Object == nil {
|
||||
continue
|
||||
}
|
||||
pod := event.Object.(*corev1.Pod)
|
||||
ep := endpointForPod(pod)
|
||||
switch event.Type {
|
||||
|
Loading…
Reference in New Issue
Block a user