Use the same default namespace across event recorders

Signed-off-by: Monis Khan <mok@vmware.com>

Kubernetes-commit: 167d6a2c8b00413cb52841ee49dd042bfb7d10c9
This commit is contained in:
Monis Khan 2020-03-04 13:49:33 -05:00 committed by Kubernetes Publisher
parent f12177f0a9
commit 7ba7043ddf

View File

@ -68,7 +68,7 @@ func (recorder *recorderImpl) makeEvent(refRegarding *v1.ObjectReference, refRel
t := metav1.Time{Time: recorder.clock.Now()}
namespace := refRegarding.Namespace
if namespace == "" {
namespace = metav1.NamespaceSystem
namespace = metav1.NamespaceDefault
}
return &v1beta1.Event{
ObjectMeta: metav1.ObjectMeta{