Removed endpoint IP translation
@@ -3,7 +3,6 @@ package advertisement_operator
import (
"github.com/go-logr/logr"
protocolv1 "github.com/netgroup-polito/dronev2/api/advertisement-operator/v1"
- mutation "github.com/netgroup-polito/dronev2/internal/kubernetes"
pkg "github.com/netgroup-polito/dronev2/pkg/advertisement-operator"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -83,7 +82,6 @@ func StartReflector(log logr.Logger, namespace string, adv protocolv1.Advertisem
// filter remote ep
if !strings.HasPrefix(*addr.NodeName, "vk") {
endpointsRemote.Subsets[i] = ep
- endpointsRemote.Subsets[i].Addresses[j].IP = mutation.ChangePodIp(adv.Spec.Network.PodCIDR, addr.IP)
endpointsRemote.Subsets[i].Addresses[j].NodeName = nil
}
}
