Skip to content

Commit adf9f8e

Browse files
committed
log formatting and removing pods if not found
1 parent 83ed549 commit adf9f8e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pkg/ext-proc/backend/inferencepool_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (c *InferencePoolReconciler) Reconcile(ctx context.Context, req ctrl.Reques
3232

3333
serverPool := &v1alpha1.InferencePool{}
3434
if err := c.Get(ctx, req.NamespacedName, serverPool); err != nil {
35-
klog.Error(err, "unable to get InferencePool")
35+
klog.Error(err, ": unable to get InferencePool")
3636
return ctrl.Result{}, err
3737
}
3838
if c.Datastore.inferencePool == nil || !reflect.DeepEqual(serverPool.Spec.Selector, c.Datastore.inferencePool.Spec.Selector) {

pkg/ext-proc/backend/pod_reconciler.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ func (c *PodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.R
3535

3636
pod := &corev1.Pod{}
3737
if err := c.Get(ctx, req.NamespacedName, pod); err != nil {
38-
klog.Error(err, "unable to get InferencePool")
38+
klog.Error(err, ": unable to get pod")
39+
c.Datastore.pods.Delete(pod)
3940
return ctrl.Result{}, err
4041
}
4142

pkg/manifests/ext_proc.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ spec:
7171
spec:
7272
containers:
7373
- name: inference-gateway-ext-proc
74-
image: us-central1-docker.pkg.dev/k8s-staging-images/gateway-api-inference-extension/epp:main
74+
#image: us-central1-docker.pkg.dev/k8s-staging-images/gateway-api-inference-extension/epp:main
75+
image: us-east1-docker.pkg.dev/kfswain-gke-dev/test-repo/ext-proc:test-feb-03
7576
imagePullPolicy: Always
7677
args:
7778
- -poolName

0 commit comments

Comments
 (0)