diff --git a/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs b/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs index e41dd31..d0d04f4 100644 --- a/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs +++ b/src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs @@ -420,14 +420,14 @@ namespace k8s /// https://github.com/kubernetes-client/python-base/blob/master/config/exec_provider.py /// /// The external command execution configuration - /// The token received from the external commmand execution + /// The token received from the external command execution public static string ExecuteExternalCommand(ExternalExecution config) { var execInfo = new Dictionary { {"apiVersion", config.ApiVersion }, {"kind", "ExecCredentials" }, - {"spec", new Dictionary {{"interactive", Environment.UserInteractive } } }, + {"spec", new Dictionary { {"interactive", Environment.UserInteractive } } }, }; var process = new Process(); @@ -464,7 +464,7 @@ namespace k8s } var stdout = process.StandardOutput.ReadToEnd(); - var stderr = process.StandardOutput.ReadToEnd(); + var stderr = process.StandardError.ReadToEnd(); if (string.IsNullOrWhiteSpace(stderr) == false) { throw new KubeConfigException($"external exec failed due to: {stderr}"); @@ -660,7 +660,7 @@ namespace k8s /// The to merge from private static void MergeKubeConfig(K8SConfiguration basek8SConfig, K8SConfiguration mergek8SConfig) { - // For scalar values, prefer local values + // For scalar values, prefer local values basek8SConfig.CurrentContext = basek8SConfig.CurrentContext ?? mergek8SConfig.CurrentContext; basek8SConfig.FileName = basek8SConfig.FileName ?? mergek8SConfig.FileName;