Skip to content

Commit

Permalink
chore: fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic committed Apr 18, 2023
1 parent f516d69 commit 15c4d89
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ public static ExecCredentialResponse ExecuteExternalCommand(ExternalExecution co
// Wait for a maximum of 5 seconds, if a response takes longer probably something went wrong...
if (!process.WaitForExitAsync().Wait(TimeSpan.FromSeconds(5)))

Check failure on line 570 in src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Process' does not contain a definition for 'WaitForExitAsync' and no accessible extension method 'WaitForExitAsync' accepting a first argument of type 'Process' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 570 in src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Process' does not contain a definition for 'WaitForExitAsync' and no accessible extension method 'WaitForExitAsync' accepting a first argument of type 'Process' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 570 in src/KubernetesClient/KubernetesClientConfiguration.ConfigFile.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

'Process' does not contain a definition for 'WaitForExitAsync' and no accessible extension method 'WaitForExitAsync' accepting a first argument of type 'Process' could be found (are you missing a using directive or an assembly reference?)
{
if (!string.IsNullOrWhiteSpace(stderr))
{
throw new KubeConfigException($"external exec failed due to: {stderr}");
}

throw new KubeConfigException("external exec failed due to timeout");
}

Expand Down

0 comments on commit 15c4d89

Please sign in to comment.