func isSpecUpdated()

in controllers/gerritgroup/controller.go [64:77]


func isSpecUpdated(e event.UpdateEvent) bool {
	oo, ok := e.ObjectOld.(*gerritApi.GerritGroup)
	if !ok {
		return false
	}

	no, ok := e.ObjectNew.(*gerritApi.GerritGroup)
	if !ok {
		return false
	}

	return !reflect.DeepEqual(oo.Spec, no.Spec) ||
		(oo.GetDeletionTimestamp().IsZero() && !no.GetDeletionTimestamp().IsZero())
}