Skip to content

Commit

Permalink
Merge pull request #689 from kevpar/fix-event-namespace
Browse files Browse the repository at this point in the history
Explicitly set namespace when publishing an event
  • Loading branch information
kevpar authored Sep 5, 2019
2 parents 84b0c36 + 472381b commit c088f41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/containerd-shim-runhcs-v1/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (

"github.com/Microsoft/hcsshim/internal/log"
"github.com/Microsoft/hcsshim/internal/oc"
"github.com/containerd/containerd/namespaces"
shim "github.com/containerd/containerd/runtime/v2/shim"
"github.com/sirupsen/logrus"
"go.opencensus.io/trace"
Expand Down Expand Up @@ -49,5 +50,5 @@ func (e *eventPublisher) publishEvent(ctx context.Context, topic string, event i
return nil
}

return e.remotePublisher.Publish(ctx, topic, event)
return e.remotePublisher.Publish(namespaces.WithNamespace(ctx, namespaceFlag), topic, event)
}

0 comments on commit c088f41

Please # to comment.