Only set a groupresource on errors if a resource was specified
Only set a groupresource on errors if a resource was specified

Kubernetes-commit: 69510237598df78c456ebb36a312f86c8a2d2e37

kubernetes/client-go,caesarxuchao/client-go,li-ang/client-go,caesarxuchao/client-go