提交 1a1bcfeb 编写于 作者: J Jeff 提交者: zryfish

fix router nil bug

上级 ed224612
......@@ -112,6 +112,10 @@ func getMasterNodeIp() string {
func addLoadBalancerIp(service *corev1.Service) {
if service == nil {
return
}
// append selected node ip as loadbalancer ingress ip
if service.Spec.Type != corev1.ServiceTypeLoadBalancer && len(service.Status.LoadBalancer.Ingress) == 0 {
rip := getMasterNodeIp()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册