Simon Cropp
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Microsoft.Tye.Core/ValidateSecretStep.cs
|
|
@ -54,7 +54,7 @@ namespace Microsoft.Tye |
|
|
var config = KubernetesClientConfiguration.BuildDefaultConfig(); |
|
|
var config = KubernetesClientConfiguration.BuildDefaultConfig(); |
|
|
|
|
|
|
|
|
// Workaround for https://github.com/kubernetes-client/csharp/issues/372
|
|
|
// 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(); |
|
|
var context = store.Contexts.Where(c => c.Name == config.CurrentContext).FirstOrDefault(); |
|
|
config.Namespace ??= context?.ContextDetails?.Namespace; |
|
|
config.Namespace ??= context?.ContextDetails?.Namespace; |
|
|
|
|
|
|
|
|
|