activeServices:=make(map[proxy.ServicePortName]bool)// use a map as a set
activeServices:=make(map[proxy.ServicePortName]bool)// use a map as a set
fori:=rangeservices{
for_,service:=rangeservices{
service:=&services[i]
// if ClusterIP is "None" or empty, skip proxying
// if ClusterIP is "None" or empty, skip proxying
if!api.IsServiceIPSet(service){
if!api.IsServiceIPSet(service){
glog.V(3).Infof("Skipping service %s due to clusterIP = %q",types.NamespacedName{Namespace:service.Namespace,Name:service.Name},service.Spec.ClusterIP)
glog.V(3).Infof("Skipping service %s due to clusterIP = %q",types.NamespacedName{Namespace:service.Namespace,Name:service.Name},service.Spec.ClusterIP)
activeServicePortPortals:=make(map[ServicePortPortalName]bool)// use a map as a set
activeServicePortPortals:=make(map[ServicePortPortalName]bool)// use a map as a set
fori:=rangeservices{
for_,service:=rangeservices{
service:=&services[i]
// if ClusterIP is "None" or empty, skip proxying
// if ClusterIP is "None" or empty, skip proxying
if!api.IsServiceIPSet(service){
if!api.IsServiceIPSet(service){
glog.V(3).Infof("Skipping service %s due to clusterIP = %q",types.NamespacedName{Namespace:service.Namespace,Name:service.Name},service.Spec.ClusterIP)
glog.V(3).Infof("Skipping service %s due to clusterIP = %q",types.NamespacedName{Namespace:service.Namespace,Name:service.Name},service.Spec.ClusterIP)