You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by li...@apache.org on 2022/08/17 09:05:51 UTC

[apisix-ingress-controller] branch master updated: fix: log Secret name instead of all data (#1216)

This is an automated email from the ASF dual-hosted git repository.

lingsamuel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 2fa8a9c0 fix: log Secret name instead of all data (#1216)
2fa8a9c0 is described below

commit 2fa8a9c00e9fd3baa4884bb679879fc659fd218a
Author: 失眠是真滴难受 <y....@foxmail.com>
AuthorDate: Wed Aug 17 17:05:46 2022 +0800

    fix: log Secret name instead of all data (#1216)
    
    * fix: log Secret name instead of all data
    
    * fix: remove redundant logs
    
    * ci: triger
---
 pkg/providers/k8s/secret.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/providers/k8s/secret.go b/pkg/providers/k8s/secret.go
index 57c36a08..1d299eb2 100644
--- a/pkg/providers/k8s/secret.go
+++ b/pkg/providers/k8s/secret.go
@@ -400,8 +400,7 @@ func (c *secretController) onUpdate(prev, curr interface{}) {
 		return
 	}
 	log.Debugw("secret update event arrived",
-		zap.Any("new object", curr),
-		zap.Any("old object", prev),
+		zap.Any("secret name", curr.(*corev1.Secret).ObjectMeta.Name),
 	)
 	c.workqueue.Add(&types.Event{
 		Type:   types.EventUpdate,