Skip to content

Commit

Permalink
expose watch to classic (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 authored Jan 5, 2023
1 parent 6b104a5 commit 524aef7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/KubernetesClient.Classic/Global.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
global using System.Collections.Generic;
global using System.Linq;
global using System.Text.Json;
global using System.Text.Json.Serialization;
5 changes: 5 additions & 0 deletions src/KubernetesClient.Classic/KubernetesClient.Classic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.1" />
<PackageReference Include="IdentityModel.OidcClient" Version="5.2.1" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -42,6 +43,10 @@
<Compile Include="..\KubernetesClient\IKubernetes.Exec.cs" />
<Compile Include="..\KubernetesClient\Kubernetes.Exec.cs" />

<Compile Include="..\KubernetesClient\Watcher.cs" />
<Compile Include="..\KubernetesClient\WatcherExt.cs" />
<Compile Include="..\KubernetesClient\LineSeparatedHttpContent.cs" />

<Compile Include="..\KubernetesClient\Exceptions\KubeConfigException.cs" />
<Compile Include="..\KubernetesClient\Exceptions\KubernetesClientException.cs" />

Expand Down
4 changes: 0 additions & 4 deletions src/KubernetesClient/Kubernetes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ protected override async Task<HttpOperationResponse<T>> CreateResultAsync<T>(Htt

if (watch == true)
{
#if NETSTANDARD2_0 || NET48
throw new KubernetesException("watch not supported");
#else
httpResponse.Content = new LineSeparatedHttpContent(httpResponse.Content, cancellationToken);
#endif
}

try
Expand Down

0 comments on commit 524aef7

Please sign in to comment.