public void ContextEllipticKey(string context) { var fi = new FileInfo("assets/kubeconfig.yml"); var cfg = KubernetesClientConfiguration.BuildConfigFromConfigFile(fi, context, useRelativePaths: false); var pfx = CertUtils.GeneratePfx(cfg); Assert.NotNull(pfx); }
public void LoadFromInlineDataRelativePath() { var cfg = KubernetesClientConfiguration.BuildConfigFromConfigFile(kubeConfigWithRelativePathsFileName, "victorian-context"); // Just validate that this doesn't throw and private key is non-null var cert = CertUtils.GeneratePfx(cfg); Assert.NotNull(cert.PrivateKey); }
public void LoadFromFiles() { var cfg = KubernetesClientConfiguration.BuildConfigFromConfigFile(kubeConfigFileName, "federal-context", useRelativePaths: false); // Just validate that this doesn't throw and private key is non-null var cert = CertUtils.GeneratePfx(cfg); Assert.NotNull(cert.PrivateKey); }