Skip to content

Commit

Permalink
GameServerSets: DeleteFunc could receive a DeletedFinalStateUnknown
Browse files Browse the repository at this point in the history
This should have a check on it anyway, but I went hunting
as I was wondering if this might be the cause for #414
  • Loading branch information
markmandel authored and EricFortin committed Dec 11, 2018
1 parent 938e23e commit 23044f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/gameserversets/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ func (c *Controller) updateValidationHandler(review admv1beta1.AdmissionReview)
}

func (c *Controller) gameServerEventHandler(obj interface{}) {
gs := obj.(*v1alpha1.GameServer)
gs, ok := obj.(*v1alpha1.GameServer)
if !ok {
return
}

ref := metav1.GetControllerOf(gs)
if ref == nil {
return
Expand Down

0 comments on commit 23044f8

Please sign in to comment.