You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vendor\k8s.io\apimachinery\pkg\util\managedfields\internal\structuredmerge.go:73:4: unknown field IgnoredFields in struct literal of type merge.Updater
#268
Open
anyone0034 opened this issue
Nov 13, 2024
· 2 comments
@jpbetz It appears that c68c9ee introduced a backward-incompatible change, removing IgnoredFields and adding IgnoredFilter in its stead:
// IgnoreFilter filters out ignored fields from a fieldpath.Set.
IgnoreFilter map[fieldpath.APIVersion]fieldpath.Filter
This is impacting a few downstream projects/dependencies. For me it's apimachinery:
# k8s.io/apimachinery/pkg/util/managedfields/internal
../../../../../go/pkg/mod/k8s.io/apimachinery@v0.31.2/pkg/util/managedfields/internal/structuredmerge.go:56:4: unknown field IgnoredFields in struct literal of type merge.Updater
../../../../../go/pkg/mod/k8s.io/apimachinery@v0.31.2/pkg/util/managedfields/internal/structuredmerge.go:73:4: unknown field IgnoredFields in struct literal of type merge.Updater
I'd recommend adding back the old field in some backwards compatible way. A breaking change should be done via a major version bump, not in a minor bump.
IgnoredFields is miss,how to resolve
The text was updated successfully, but these errors were encountered: