From b3d12e674024c6b875d3d295836ff5703ed6b875 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 27 Mar 2020 10:51:47 +1100 Subject: [PATCH] Use LoadKubeConfigAsync instead of LoadKubeConfig (#220) --- src/Microsoft.Tye.Core/ValidateSecretStep.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Tye.Core/ValidateSecretStep.cs b/src/Microsoft.Tye.Core/ValidateSecretStep.cs index 5c58d46e..d558f6e3 100644 --- a/src/Microsoft.Tye.Core/ValidateSecretStep.cs +++ b/src/Microsoft.Tye.Core/ValidateSecretStep.cs @@ -54,7 +54,7 @@ namespace Microsoft.Tye var config = KubernetesClientConfiguration.BuildDefaultConfig(); // Workaround for https://github.com/kubernetes-client/csharp/issues/372 - var store = KubernetesClientConfiguration.LoadKubeConfig(); + var store = await KubernetesClientConfiguration.LoadKubeConfigAsync(); var context = store.Contexts.Where(c => c.Name == config.CurrentContext).FirstOrDefault(); config.Namespace ??= context?.ContextDetails?.Namespace;