File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
src/LibKubernetesGenerator/templates
tests/KubernetesClient.Tests Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
using k8s ;
2
+ using k8s . Models ;
2
3
using k8s . ClientSets ;
3
4
using System . Threading . Tasks ;
4
5
@@ -13,7 +14,7 @@ private static async Task Main(string[] args)
13
14
14
15
var clientSet = new ClientSet ( client ) ;
15
16
var list = await clientSet . CoreV1 . Pod . ListAsync ( "default" ) . ConfigureAwait ( false ) ;
16
- foreach ( var item in list . Items )
17
+ foreach ( var item in list )
17
18
{
18
19
System . Console . WriteLine ( item . Metadata . Name ) ;
19
20
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public partial interface I{{name}}Operations
27
27
/// </param>
28
28
{{if IfParamContains api.operation "watch"}}
29
29
[Obsolete("This method will be deprecated in future versions. Please use the Watch method instead.")]
30
- {{ end }}
30
+ {{end}}
31
31
Task<HttpOperationResponse{{GetReturnType api.operation "<>"}}> {{GetOperationId api.operation "WithHttpMessagesAsync"}}(
32
32
{{ for parameter in api.operation.parameters}}
33
33
{{GetDotNetTypeOpenApiParameter parameter}} {{GetDotNetNameOpenApiParameter parameter "true"}},
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ await Assert.ThrowsAsync<TaskCanceledException>(async () =>
568
568
Host = server . Uri . ToString ( ) ,
569
569
HttpClientTimeout = TimeSpan . FromSeconds ( 5 ) ,
570
570
} ) ;
571
- await client . CoreV1 . ListNamespacedPodWithHttpMessagesAsync ( "default" ) . ConfigureAwait ( true ) ;
571
+ await client . CoreV1 . ListNamespacedPodAsync ( "default" ) . ConfigureAwait ( true ) ;
572
572
} ) . ConfigureAwait ( true ) ;
573
573
574
574
// cts
@@ -580,7 +580,7 @@ await Assert.ThrowsAsync<TaskCanceledException>(async () =>
580
580
{
581
581
Host = server . Uri . ToString ( ) ,
582
582
} ) ;
583
- await client . CoreV1 . ListNamespacedPodWithHttpMessagesAsync ( "default" , cancellationToken : cts . Token ) . ConfigureAwait ( true ) ;
583
+ await client . CoreV1 . ListNamespacedPodAsync ( "default" , cancellationToken : cts . Token ) . ConfigureAwait ( true ) ;
584
584
} ) . ConfigureAwait ( true ) ;
585
585
}
586
586
You can’t perform that action at this time.
0 commit comments