* migrate to record
* chore: update project files and clean up unused references
* refactor: convert classes to records and simplify constructors for IntOrString, ResourceQuantity, and V1Patch
* fix: define IsExternalInit to resolve CS0518 error in IntOrString
* refactor: change IntOrString and ResourceQuantity from records to structs, update implicit conversions, and simplify null checks
* refactor: add JsonPropertyName attribute to Value property in IntOrString struct
* refactor: simplify V1Patch constructor and improve argument validation
* refactor: remove unnecessary CultureInfo parameter in ToInt method
* Update src/KubernetesClient/Models/ResourceQuantity.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/KubernetesClient/Models/IntOrString.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Revert "Update src/KubernetesClient/Models/ResourceQuantity.cs"
This reverts commit 62b20a691554659e28d419067220dc1a0620133b.
* refactor: remove commented-out formatting check and simplify build command
* refactor: remove IValidate.cs from project references in Aot and Classic
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Implement code changes to enhance functionality and improve performance
* chore: update version to 18.0 in version.json
* fix: correct initialization of opblackList in PluralHelper
* chore: update SDK version to 18.0 in README.md
* Fixdocfx (#82)
* fix: update file references and clean up validation comments in models
* chore: add symlink to CONTRIBUTING.md for easier access
* fix: update documentation to include full type names for WebSocket and Predicate
* fix: include CONTRIBUTING.md in docfx.json build content
* refactor: update IKubernetes interface and template for consistency
* feat: add Microsoft.CodeAnalysis.CSharp package and improve source normalization in generator context
* chore: update package versions in Directory.Packages.props for compatibility and improvements
* chore: update Microsoft.VisualStudio.SlnGen and Nerdbank.GitVersioning package versions for compatibility
* Implement code changes to enhance functionality and improve performance
* chore: update version to 18.0 in version.json
* fix: correct initialization of opblackList in PluralHelper
* chore: update SDK version to 18.0 in README.md
* refactor: update IKubernetes interface and template for consistency
* feat: add Microsoft.CodeAnalysis.CSharp package and improve source normalization in generator context
* chore: update package versions in Directory.Packages.props for compatibility and improvements
* chore: update Microsoft.VisualStudio.SlnGen and Nerdbank.GitVersioning package versions for compatibility
* chore: downgrade xunit.runner.visualstudio and Xunit.StaFact package versions for compatibility
* chore: update package versions in Directory.Packages.props for compatibility and improvements
* style: format code for consistency and readability
* feat: update certificate loading logic for .NET 9 compatibility
* fix: update certificate loading method for .NET 9 compatibility
* Add VersionTestAsync to validate Kubernetes client version retrieval
* Add SourceGenerationContextGenerator and update registration in KubernetesClientSourceGenerator
* fix typo
* Add modular API
* Use x-kubernetes-action instead of operationId to generate method names
* fix
* Clean code style warnings
* Refactor client constructors to use Kubernetes type instead of IKubernetes
* Add ClientSet tests for Kubernetes pod operations
* Fix order of parameters in Pod API calls for consistency
* Enhance documentation for ClientSet and ResourceClient classes
* Refactor ClientSet and GroupClient for Kubernetes usage
* Refactor Pod API calls in tests to use singular form for consistency
* Refactor Pod API calls to use 'Create' and 'Update' methods for consistency
* generated based on 1.33
* Update version to 17.0 in version.json
* Remove extra API endpoint from swagger.json
* Remove ModelConverter and related AutoMapper components
* Update package versions
* Refactor code to use ConfigureAwait(false) for asynchronous calls and update target framework to net9.0
* Remove ConfigureAwait(false) from OidcAuthTests for consistency in async calls
* Update SDK version in README to reflect support for net8.0 and net9.0
* Update dotnet SDK version to 9.0.x in build workflow
* Revert Fractions package version to 7.3.0 in Directory.Packages.props
* Update target framework to netstandard2.1 for improved compatibility
* Update package references for Microsoft.CodeAnalysis in Directory.Packages.props and LibKubernetesGenerator.target
* Refactor Worker class constructor documentation and standardize Dictionary type declaration in Program.cs
* Refactor OidcTokenProvider to remove dependency on IdentityModel and improve token handling
* Improve OidcTokenProvider error handling and expiry setting
The constructor `OidcTokenProvider` now always sets the `_expiry`
field by calling `GetExpiryFromToken()`, regardless of whether
`_idToken` is null or empty, removing the previous check for a
non-empty `_idToken`.
The `GetExpiryFromToken` method has been updated to handle invalid
JWT token formats more gracefully. Instead of throwing an
`ArgumentException` when the token format is invalid or when the
'exp' claim is missing, the method now returns a default value.
The logic for parsing the JWT token and extracting the 'exp' claim
has been wrapped in a try-catch block. If any exception occurs
during this process, it is caught, and the method returns a default
value instead of throwing an exception.
* Refactor parts initialization inside try block
Moved the initialization of the `parts` variable, which splits the `_idToken` string, inside the `try` block. Removed the previous check for exactly three elements in the `parts` array and the default return value if the check failed.
* Add tests.
---------
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
* generate based on v1.32
* bump ver
* Delete swagger.json.unprocessed
* Update target frameworks and SDK versions in project files
* Remove extra API endpoint from swagger.json
* Update .NET SDK version to 9.0.x and adjust package references
* happy build
* Enhance certificate handling for .NET 9.0 compatibility in CertUtils and KubernetesClientConfiguration
* Add mapping for V1beta1ResourceClaim to V1ResourceClaim in AutoMapper configurations
* Refactor certificate loading to improve compatibility with .NET 9.0
* Update package versions in Directory.Packages.props for improved compatibility and features
* Update Fractions package version to 7.3.0 for improved compatibility
* Update KUBERNETES_BRANCH to v1.30.0 in csharp.settings
* Update version.json to 14.0
* Update SDK version to 14.0 for Kubernetes 1.30
* fix csharp naming conflict
* drop support of net7
* remove unused comment
* Improve docs and naming of `LeaderElector` methods. Also introduce `LeaderElector.RunAndTryToHoldLeadershipForeverAsync()`
* fix build
---------
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
* Added net8.0 to the dotnet-version array used by actions
* Changed framework version in Directory.Build.props
* Removed unsed nuget
* Update codeql-analysis.yml
* Added net8.0 target framework
* Updated code analyzer version to match net8.0
* Added net8.0 to tests
* Updated sdk version
* Updated version.json
* Fixed build for non windows machines
* Updated references in Directory.Build.targets
* Added conditional exception handling to WatchServerDisconnect test case
* Added missing project to solution