Skip to content

Commit f3db8e5

Browse files
committed
maybe this is the fix?
Signed-off-by: jukie <[email protected]>
1 parent 6a1bb28 commit f3db8e5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

internal/provider/kubernetes/controller.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,17 @@ func (r *gatewayAPIReconciler) processServiceClusterForGateway(ep *egv1a1.EnvoyP
16341634
}
16351635
}
16361636

1637+
svc := &corev1.Service{}
1638+
svcNN := types.NamespacedName{Name: proxySvcName, Namespace: proxySvcNamespace}
1639+
if err := r.client.Get(context.Background(), svcNN, svc); err != nil {
1640+
if kerrors.IsNotFound(err) {
1641+
r.log.Info("proxy service not found, this is expected upon first iteration", "namespace", proxySvcNamespace, "name", proxySvcName)
1642+
return
1643+
}
1644+
r.log.Error(err, "failed to get proxy proxy service", "namespace", proxySvcNamespace, "name", proxySvcName)
1645+
return
1646+
}
1647+
16371648
resourceMap.insertBackendRef(gwapiv1.BackendObjectReference{
16381649
Kind: ptr.To(gwapiv1.Kind("Service")),
16391650
Namespace: gatewayapi.NamespacePtr(proxySvcNamespace),

0 commit comments

Comments
 (0)