mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-29 04:02:18 +00:00
Use the same default namespace across event recorders
Signed-off-by: Monis Khan <mok@vmware.com> Kubernetes-commit: 167d6a2c8b00413cb52841ee49dd042bfb7d10c9
This commit is contained in:
parent
f12177f0a9
commit
7ba7043ddf
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user