Skip to content

Commit 1a4fe9c

Browse files
dependabot-preview[bot]Christoph Bühler
andauthored
chore(deps): bump DotnetKubernetesClient from 1.0.0 to 1.1.0 (#116)
* chore(deps): bump DotnetKubernetesClient from 1.0.0 to 1.1.0 Bumps [DotnetKubernetesClient](https://github.com/buehler/dotnet-kubernetes-client) from 1.0.0 to 1.1.0. - [Release notes](https://github.com/buehler/dotnet-kubernetes-client/releases) - [Changelog](https://github.com/buehler/dotnet-kubernetes-client/blob/master/.releaserc.json) - [Commits](buehler/dotnet-kubernetes-client@v1.0.0...v1.1.0) Signed-off-by: dependabot-preview[bot] <[email protected]> * fix Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Christoph Bühler <[email protected]>
1 parent f0a50f3 commit 1a4fe9c

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/KubeOps.Testing/MockKubernetesClient.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,23 @@ public Task<Watcher<TResource>> Watch<TResource>(
7979
Action<Exception>? onError = null,
8080
Action? onClose = null,
8181
string? @namespace = null,
82-
CancellationToken cancellationToken = default)
82+
CancellationToken cancellationToken = default,
83+
params ILabelSelector[] selectors)
84+
where TResource : IKubernetesObject<V1ObjectMeta>
85+
=> Task.FromResult(
86+
new Watcher<TResource>(
87+
() => Task.FromResult(new StreamReader(new MemoryStream())),
88+
(_, __) => { },
89+
_ => { }));
90+
91+
public Task<Watcher<TResource>> Watch<TResource>(
92+
TimeSpan timeout,
93+
Action<WatchEventType, TResource> onEvent,
94+
Action<Exception>? onError = null,
95+
Action? onClose = null,
96+
string? @namespace = null,
97+
CancellationToken cancellationToken = default,
98+
string? labelSelector = default)
8399
where TResource : IKubernetesObject<V1ObjectMeta>
84100
=> Task.FromResult(
85101
new Watcher<TResource>(

src/KubeOps/KubeOps.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<ItemGroup>
2727
<PackageReference Include="CompareNETObjects" Version="4.67.0" />
28-
<PackageReference Include="DotnetKubernetesClient" Version="1.0.0" />
28+
<PackageReference Include="DotnetKubernetesClient" Version="1.1.0" />
2929
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="3.0.0" />
3030
<PackageReference Include="McMaster.Extensions.Hosting.CommandLine" Version="3.0.0" />
3131
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="5.0.1" />

0 commit comments

Comments
 (0)