Skip to content

revert change to structs from classes for IntOrString and ResourceQuantity, and handle null values in YAML converters #1893

revert change to structs from classes for IntOrString and ResourceQuantity, and handle null values in YAML converters

revert change to structs from classes for IntOrString and ResourceQuantity, and handle null values in YAML converters #1893

Triggered via pull request October 15, 2025 09:04
Status Success
Total duration 12m 12s
Artifacts 3

buildtest.yaml

on: pull_request
Matrix: Dotnet build
Fit to window
Zoom out
Zoom in

Annotations

53 warnings
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/VolumeAttributesClassClient.g.cs#L579
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/VolumeAttributesClassClient.g.cs#L451
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/StorageVersionMigrationClient.g.cs#L579
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/StorageVersionMigrationClient.g.cs#L451
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2730
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2609
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1465
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1348
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L760
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
MSBuild build: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L643
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (ubuntu-latest)
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
e2e: src/KubernetesClient/Models/ResourceQuantity.cs#L174
In externally visible method 'ResourceQuantity.implicit operator decimal(ResourceQuantity v)', validate parameter 'v' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/VolumeAttributesClassClient.g.cs#L579
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/VolumeAttributesClassClient.g.cs#L451
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/StorageVersionMigrationClient.g.cs#L579
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/StorageVersionMigrationClient.g.cs#L451
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2730
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2609
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1465
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1348
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L760
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
e2e: src/KubernetesClient/obj/Debug/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L643
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (windows-latest): src/KubernetesClient/obj/Release/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2730
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (windows-latest): src/KubernetesClient/obj/Release/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2609
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (windows-latest): src/KubernetesClient/obj/Release/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1465
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (windows-latest): src/KubernetesClient/obj/Release/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1348
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (windows-latest): src/KubernetesClient/obj/Release/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L760
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (windows-latest): src/KubernetesClient/obj/Release/net8.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L643
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (windows-latest)
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (windows-latest)
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (windows-latest)
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (windows-latest)
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/SchedulingV1OperationsExtensions.g.cs#L779
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/StorageV1alpha1OperationsExtensions.g.cs#L910
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/StorageV1alpha1OperationsExtensions.g.cs#L779
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2730
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L2609
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1465
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L1348
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L760
'WatcherExt.WatchAsync<T, L>(Task<HttpOperationResponse<L>>, Action<Exception>, CancellationToken)' is obsolete: 'This method will be deprecated in future versions. Please use the WatchAsync method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/obj/Release/net9.0/generated/LibKubernetesGenerator/LibKubernetesGenerator.KubernetesClientSourceGenerator/CustomObjectsOperationsExtensions.g.cs#L643
'WatcherExt.Watch<T, L>(Task<HttpOperationResponse<L>>, Action<WatchEventType, T>, Action<Exception>, Action)' is obsolete: 'This method will be deprecated in future versions. Please use the Watch method instead.'
Dotnet build (macOS-latest): src/KubernetesClient/Models/ResourceQuantity.cs#L174
In externally visible method 'ResourceQuantity.implicit operator decimal(ResourceQuantity v)', validate parameter 'v' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)

Artifacts

Produced during runtime
Name Size Digest
test-results-macOS-latest
3.7 MB
sha256:f770f600346f7f61f1eb9bde8c15fabedaa8a786e45e42084b6330b10441ee9c
test-results-ubuntu-latest
5.73 MB
sha256:60b9fd2a3d9abba637daf30b5027c4d740f7c045e3e2e2da85718a63afc89e20
test-results-windows-latest
6.79 MB
sha256:52a5ccd81aa4753ff3a8ee856b1f7b5434afa39696a6ad270e207f52014ed5d4