Make LoadKubeConfig public and refactor to use YAML helper methods (#133)
* Made LoadKubeConfig public and refactored to use YAML helper methods * Addressing Code review feedback
This commit is contained in:
committed by
Brendan Burns
parent
ea62ca00e0
commit
df4d5dc31a
@@ -18,8 +18,7 @@ namespace k8s.Tests
|
||||
[Fact]
|
||||
public void LoadFromFiles()
|
||||
{
|
||||
var fi = new FileInfo(kubeConfigFileName);
|
||||
var cfg = KubernetesClientConfiguration.BuildConfigFromConfigFile(fi, "federal-context");
|
||||
var cfg = KubernetesClientConfiguration.BuildConfigFromConfigFile(kubeConfigFileName, "federal-context");
|
||||
|
||||
// Just validate that this doesn't throw and private key is non-null
|
||||
var cert = CertUtils.GeneratePfx(cfg);
|
||||
@@ -32,8 +31,7 @@ namespace k8s.Tests
|
||||
[Fact]
|
||||
public void LoadFromInlineData()
|
||||
{
|
||||
var fi = new FileInfo(kubeConfigFileName);
|
||||
var cfg = KubernetesClientConfiguration.BuildConfigFromConfigFile(fi, "victorian-context");
|
||||
var cfg = KubernetesClientConfiguration.BuildConfigFromConfigFile(kubeConfigFileName, "victorian-context");
|
||||
|
||||
// Just validate that this doesn't throw and private key is non-null
|
||||
var cert = CertUtils.GeneratePfx(cfg);
|
||||
|
||||
Reference in New Issue
Block a user