mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Fix validation of event updates
This commit is contained in:
@@ -78,7 +78,7 @@ func (eventStrategy) AllowCreateOnUpdate() bool {
|
||||
func (eventStrategy) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList {
|
||||
groupVersion := requestGroupVersion(ctx)
|
||||
event := obj.(*api.Event)
|
||||
oldEvent := obj.(*api.Event)
|
||||
oldEvent := old.(*api.Event)
|
||||
return validation.ValidateEventUpdate(event, oldEvent, groupVersion)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user