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:
committed by
Alena Prokharchyk
parent
8022b815b3
commit
ad678b6a32
14
pki/util.go
14
pki/util.go
@@ -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
|
||||
|
Reference in New Issue
Block a user