提交 3a4c4c10 编写于 作者: J jeff

fix service type

Signed-off-by: Njeff <jeffzhang@yunify.com>
上级 e40833c2
......@@ -96,7 +96,7 @@ func generateSvcObject(item v1.Service) *Service {
}
if len(item.Spec.ClusterIP) == 0 || item.Spec.ClusterIP == "None" {
if len(item.Spec.Selector) == 0 {
if len(item.Spec.Selector) != 0 {
serviceType = "Headless(Selector)"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册