From bd3fe59b0de61cc36750b8651eb155e491d3fe0d Mon Sep 17 00:00:00 2001 From: Jiaqi Luo <6218999+jiaqiluo@users.noreply.github.com> Date: Thu, 29 Dec 2022 17:15:38 -0700 Subject: [PATCH] change Warning to Debug to reduce noise in logs --- cluster/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/validation.go b/cluster/validation.go index 0bb4d80b..27ac8e30 100644 --- a/cluster/validation.go +++ b/cluster/validation.go @@ -681,7 +681,7 @@ func validatePodSecurityPolicy(c *Cluster) error { kubeClient, err := k8s.NewClient(c.LocalKubeConfigPath, c.K8sWrapTransport) if err != nil { // we can not tell this is invoked when creating a new cluster or updating an existing one, so skip this check - logrus.Warnf("Skip the check for PSP resource due to the failire of initializing the kubernetes client") + logrus.Debugf("Skip the check for PSP resource due to the failire of initializing the kubernetes client") return nil } pspList, _ := k8s.GetPSPList(kubeClient)