1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 23:16:22 +00:00

change Warning to Debug to reduce noise in logs

This commit is contained in:
Jiaqi Luo
2022-12-29 17:15:38 -07:00
parent b48b24792d
commit bd3fe59b0d

View File

@@ -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)