This repository was archived by the owner on Jul 11, 2023. It is now read-only.
File tree 1 file changed +2
-2
lines changed
pkg/certificate/providers
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ func (m *MRCComposer) Watch(ctx context.Context) (<-chan certificate.MRCEvent, e
46
46
eventChan := make (chan certificate.MRCEvent )
47
47
m .informerCollection .AddEventHandler (informers .InformerKeyMeshRootCertificate , cache.ResourceEventHandlerFuncs {
48
48
AddFunc : func (obj interface {}) {
49
- log .Debug ().Msg ("received MRC add event" )
50
49
mrc := obj .(* v1alpha2.MeshRootCertificate )
50
+ log .Debug ().Msgf ("received MRC add event for MRC %s/%s" , mrc .GetNamespace (), mrc .GetName ())
51
51
eventChan <- certificate.MRCEvent {
52
52
Type : certificate .MRCEventAdded ,
53
53
MRC : mrc ,
@@ -56,8 +56,8 @@ func (m *MRCComposer) Watch(ctx context.Context) (<-chan certificate.MRCEvent, e
56
56
// We don't really care about the previous version
57
57
// since the "state machine" of the MRC is well defined
58
58
UpdateFunc : func (_ , newObj interface {}) {
59
- log .Debug ().Msg ("received MRC update event" )
60
59
mrc := newObj .(* v1alpha2.MeshRootCertificate )
60
+ log .Debug ().Msgf ("received MRC update event for MRC %s/%s" , mrc .GetNamespace (), mrc .GetName ())
61
61
eventChan <- certificate.MRCEvent {
62
62
Type : certificate .MRCEventUpdated ,
63
63
MRC : mrc ,
You can’t perform that action at this time.
0 commit comments