Commit a99c8b08 authored by barnettZQG's avatar barnettZQG
Browse files

Merge branch 'feature-helmapp-2' of https://github.com/goodrain/rainbond into feature-helmapp-2

Showing with 5 additions and 0 deletions
+5 -0
......@@ -712,6 +712,11 @@ func (r *RuntimeServer) ListAppServices(ctx context.Context, in *pb.AppReq) (*pb
func (r *RuntimeServer) convertServices(services []*corev1.Service) []*pb.AppService {
var appServices []*pb.AppService
for _, svc := range services {
if svc.Spec.ClusterIP == "None" {
// ignore headless service
continue
}
var ports []*pb.AppService_Port
for _, port := range svc.Spec.Ports {
ports = append(ports, &pb.AppService_Port{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment