diff --git a/pkg/plugin/handle_pod.go b/pkg/plugin/handle_pod.go index 2b58b7c1c..5cf1c357c 100644 --- a/pkg/plugin/handle_pod.go +++ b/pkg/plugin/handle_pod.go @@ -410,12 +410,12 @@ func (s *PluginState) patchReservedResourcesForPod( // then fall through to the normal one if that gets a conflict: if !hasKnownAnnotations { addPatches := []patch.Operation{ - patch.Operation{ + { Op: patch.OpTest, Path: "/metadata/annotations", Value: (*struct{})(nil), // typed nil, so that it shows up as 'null' }, - patch.Operation{ + { Op: patch.OpAdd, Path: "/metadata/annotations", Value: struct{}{},