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

Remove dead code

This commit is contained in:
Dax McDonald
2019-09-20 17:11:21 -07:00
committed by Alena Prokharchyk
parent 8022b815b3
commit ad678b6a32
5 changed files with 1 additions and 68 deletions

View File

@@ -14,7 +14,6 @@ import (
"math/big"
"net"
"os"
"path"
"path/filepath"
"reflect"
"strings"
@@ -373,19 +372,6 @@ func GetLocalKubeConfig(configPath, configDir string) string {
return fmt.Sprintf("%s%s%s", baseDir, KubeAdminConfigPrefix, fileName)
}
func strCrtToEnv(crtName, crt string) string {
return fmt.Sprintf("%s=%s", getEnvFromName(crtName), crt)
}
func strKeyToEnv(crtName, key string) string {
envName := getEnvFromName(crtName)
return fmt.Sprintf("%s=%s", getKeyEnvFromEnv(envName), key)
}
func getTempPath(s string) string {
return TempCertPath + path.Base(s)
}
func populateCertMap(tmpCerts map[string]CertificatePKI, localConfigPath string, extraHosts []*hosts.Host) map[string]CertificatePKI {
certs := make(map[string]CertificatePKI)
// CACert