diff --git a/pkg/server/server.go b/pkg/server/server.go index 102fdc456f..8a1cc93ede 100644 --- a/pkg/server/server.go +++ b/pkg/server/server.go @@ -179,7 +179,7 @@ func writeKubeConfig(certs string, tlsConfig *dynamiclistener.UserConfig, config if err == nil { os.Chmod(kubeConfig, os.FileMode(mode)) } else { - logrus.Errorf("failed to set %s to mode %s: %v", kubeConfig, mode, err) + logrus.Errorf("failed to set %s to mode %s: %v", kubeConfig, os.FileMode(mode), err) } }