From c26a5796fd9bf45e8f53b53f545f4c3f3aa5f3e9 Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Tue, 26 Nov 2024 03:39:44 +0000 Subject: [PATCH] update networking strategy --- pkg/registry/networking/servicecidr/strategy.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/registry/networking/servicecidr/strategy.go b/pkg/registry/networking/servicecidr/strategy.go index 83095ca0af2..f5e37aab613 100644 --- a/pkg/registry/networking/servicecidr/strategy.go +++ b/pkg/registry/networking/servicecidr/strategy.go @@ -54,6 +54,9 @@ func (serviceCIDRStrategy) NamespaceScoped() bool { // and should not be modified by the user. func (serviceCIDRStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ + "networking/v1": fieldpath.NewSet( + fieldpath.MakePathOrDie("status"), + ), "networking/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), @@ -129,6 +132,9 @@ var StatusStrategy = serviceCIDRStatusStrategy{Strategy} // and should not be modified by the user. func (serviceCIDRStatusStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ + "networking/v1": fieldpath.NewSet( + fieldpath.MakePathOrDie("spec"), + ), "networking/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("spec"), ),