File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/LibKubernetesGenerator/templates Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- using k8s ;
1
+ using k8s ;
2
2
using k8s . ClientSets ;
3
3
using System . Threading . Tasks ;
4
4
@@ -13,7 +13,7 @@ private static async Task Main(string[] args)
13
13
14
14
var clientSet = new ClientSet ( client ) ;
15
15
var list = await clientSet . CoreV1 . Pod . ListAsync ( "default" ) . ConfigureAwait ( false ) ;
16
- foreach ( var item in list )
16
+ foreach ( var item in list . Items )
17
17
{
18
18
System . Console . WriteLine ( item . Metadata . Name ) ;
19
19
}
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ public partial interface I{{name}}Operations
26
26
/// A <see cref="CancellationToken"/> which can be used to cancel the asynchronous operation.
27
27
/// </param>
28
28
{{if IfParamContains api.operation "watch"}}
29
- [Obsolete("This method will be deprecated in future versions. Please use the Watch method instead.", false )]
30
- {{end}}
29
+ [Obsolete("This method will be deprecated in future versions. Please use the Watch method instead.")]
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"}},
You can’t perform that action at this time.
0 commit comments