func (sc *serviceSource) filterByServiceType(services []*v1.Service) []*v1.Service {
	filteredList := []*v1.Service{}
	for _, service := range services {
		// Check if the service is of the given type or not
		if _, ok := sc.serviceTypeFilter[string(service.Spec.Type)]; ok {
			filteredList = append(filteredList, service)
		}
	}

	return filteredList
}
func (sc *serviceSource) filterByServiceType(services []*v1.Service) []*v1.Service {
	filteredList := []*v1.Service{}
	for _, service := range services {
		
		if _, ok := sc.serviceTypeFilter[string(service.Spec.Type)]; ok {
			filteredList = append(filteredList, service)
		}
	}

	return filteredList
}
func ( sc * serviceSource ) filterByServiceType ( services [ ] * v1 . Service ) [ ] * v1 . Service { filteredList := [ ] * v1 . Service { } for _ , service := range services { // Check if the service is of the given type or not if _ , ok := sc . serviceTypeFilter [ string ( service . Spec . Type ) ] ; ok { filteredList = append ( filteredList , service ) } } return filteredList }
// filterByServiceType filters services according their types
filterByServiceType filters services according their types