diff --git a/controllers/sync.go b/controllers/sync.go index 63fb549..54824bd 100644 --- a/controllers/sync.go +++ b/controllers/sync.go @@ -108,6 +108,8 @@ func (c *Reconciler) syncEndpoint(ctx context.Context, cep *v1beta1.ClusterEndpo subsets = append(subsets, subset.toEndpoint()) } ep.Subsets = subsets + } else { + ep.Subsets = []corev1.EndpointSubset{} } if len(e) != 0 { updateError = ToAggregate(e)