mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-03 12:18:09 +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():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
case event := <-w.ResultChan():
|
case event := <-w.ResultChan():
|
||||||
|
if event.Object == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
pod := event.Object.(*corev1.Pod)
|
pod := event.Object.(*corev1.Pod)
|
||||||
ep := endpointForPod(pod)
|
ep := endpointForPod(pod)
|
||||||
switch event.Type {
|
switch event.Type {
|
||||||
|
Loading…
Reference in New Issue
Block a user