ceph: debug log the k8s version instead of info

The info log is rather verbose with all the filtering of the K8s version
like the following:
returning version v1.19.0 instead of v1.19.0+43983cd

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2021-07-01 17:09:20 -06:00
1 parent af18727359
commit aaa939f686
1 file changed
+1 -1
+1 -1
View File
@@ -73,7 +73,7 @@ func GetK8SVersion(clientset kubernetes.Interface) (*version.Version, error) {
index := strings.Index(serverVersion.GitVersion, "+")
if index != -1 {
newVersion := serverVersion.GitVersion[:index]
logger.Infof("returning version %s instead of %s", newVersion, serverVersion.GitVersion)
logger.Debugf("returning version %s instead of %s", newVersion, serverVersion.GitVersion)
serverVersion.GitVersion = newVersion
}
return version.MustParseSemantic(serverVersion.GitVersion), nil