cleanup unused code and functions and fix unittest naming style

This commit is contained in:
Boshi Lian
2017-11-08 14:22:10 +08:00
parent d89293b00c
commit 950479d8a1
10 changed files with 29 additions and 95 deletions

View File

@@ -130,7 +130,7 @@ namespace k8s
if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthorityData))
{
string data = clusterDetails.ClusterEndpoint.CertificateAuthorityData;
this.SslCaCert = new X509Certificate2(System.Text.Encoding.UTF8.GetBytes(Utils.Base64Decode(data)));
this.SslCaCert = new X509Certificate2(Convert.FromBase64String(data));
}
else if (!string.IsNullOrEmpty(clusterDetails.ClusterEndpoint.CertificateAuthority))
{
@@ -215,4 +215,4 @@ namespace k8s
return deserializer.Deserialize<K8SConfiguration>(kubeconfigContent);
}
}
}
}