mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
[apiextensions] Remove nil check for map in PrepareForCreate
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
parent
3c31a0026a
commit
c96446ac2f
@ -79,9 +79,7 @@ func (a customResourceStrategy) PrepareForCreate(ctx context.Context, obj runtim
|
||||
customResource := customResourceObject.UnstructuredContent()
|
||||
|
||||
// create cannot set status
|
||||
if _, ok := customResource["status"]; ok {
|
||||
delete(customResource, "status")
|
||||
}
|
||||
delete(customResource, "status")
|
||||
}
|
||||
|
||||
accessor, _ := meta.Accessor(obj)
|
||||
|
Loading…
Reference in New Issue
Block a user