The reason for the issue is that the apiserver uses the Scheme in the global variable pkg/api/legacyscheme/scheme.go, and registers the DeleteOptions corresponding to each APIGroup in the Scheme. But DeleteOptions in meta.k8s.io/v1 is not registered, resulting in a notRegisteredErr. Use metainternalversionscheme.Codecs as Serializer Kubernetes-commit: e7d7f4a9e56fe5d9c10da437787118fe9ea9e5af |
||
|---|---|---|
| .. | ||
| admission | ||
| apis | ||
| audit | ||
| authentication | ||
| authorization | ||
| cel | ||
| endpoints | ||
| features | ||
| quota/v1 | ||
| registry | ||
| server | ||
| storage | ||
| storageversion | ||
| util | ||
| warning | ||