mirror of
https://github.com/rancher/rke.git
synced 2025-09-02 15:34:36 +00:00
change Warning to Debug to reduce noise in logs
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user