Complete refactor to new grpc control plane and only http proxy for carts #4

Merged
mats merged 75 commits from refactor/http-proxy into main 2025-10-14 22:31:28 +02:00
Showing only changes of commit 5c67579464 - Show all commits

View File

@@ -2,7 +2,6 @@ package discovery
import ( import (
"context" "context"
"log"
v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -56,7 +55,7 @@ func (k *K8sDiscovery) Watch() (<-chan HostChange, error) {
for event := range watcher.ResultChan() { for event := range watcher.ResultChan() {
pod := event.Object.(*v1.Pod) pod := event.Object.(*v1.Pod)
log.Printf("pod change %v", pod.Status) // log.Printf("pod change %+v", pod.Status.Phase == v1.PodRunning)
ch <- HostChange{ ch <- HostChange{
Host: pod.Status.PodIP, Host: pod.Status.PodIP,
Type: event.Type, Type: event.Type,