Skip to content

Commit c26a579

Browse files
committed
update networking strategy
1 parent e3b3975 commit c26a579

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/registry/networking/servicecidr/strategy.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func (serviceCIDRStrategy) NamespaceScoped() bool {
5454
// and should not be modified by the user.
5555
func (serviceCIDRStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
5656
fields := map[fieldpath.APIVersion]*fieldpath.Set{
57+
"networking/v1": fieldpath.NewSet(
58+
fieldpath.MakePathOrDie("status"),
59+
),
5760
"networking/v1beta1": fieldpath.NewSet(
5861
fieldpath.MakePathOrDie("status"),
5962
),
@@ -129,6 +132,9 @@ var StatusStrategy = serviceCIDRStatusStrategy{Strategy}
129132
// and should not be modified by the user.
130133
func (serviceCIDRStatusStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
131134
fields := map[fieldpath.APIVersion]*fieldpath.Set{
135+
"networking/v1": fieldpath.NewSet(
136+
fieldpath.MakePathOrDie("spec"),
137+
),
132138
"networking/v1beta1": fieldpath.NewSet(
133139
fieldpath.MakePathOrDie("spec"),
134140
),

0 commit comments

Comments
 (0)