Skip to content

Version 17.0 + Generate 1.33 #1626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 27, 2025
Merged

Conversation

tg123
Copy link
Member

@tg123 tg123 commented Apr 27, 2025

1 Generated with 1.33
2 AutoMapper support removed due to AutoMapper is going commercial
3 example style cleanup
4 dependencies upgraded
5

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 27, 2025
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Apr 27, 2025
@tg123 tg123 marked this pull request as ready for review April 27, 2025 13:25
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 27, 2025
@tg123 tg123 requested a review from Copilot April 27, 2025 14:07
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the SDK to version 17.0 with generated components using version 1.33, removes AutoMapper support, and cleans up code style across examples while upgrading dependencies.

  • Removed files related to AutoMapper (VersionConverter.cs, KubernetesVersionComparer.cs, AutoMapperModelVersionConverter.cs).
  • Updated asynchronous calls to include ConfigureAwait(false) for improved responsiveness.
  • Made minor style and documentation improvements in example projects.

Reviewed Changes

Copilot reviewed 25 out of 30 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/KubernetesClient.ModelConverter/AutoMapper/VersionConverter.cs Removed AutoMapper conversion functionality per removal of AutoMapper support.
src/KubernetesClient.ModelConverter/AutoMapper/KubernetesVersionComparer.cs Removed version comparer functionality as part of deprecating AutoMapper support.
src/KubernetesClient.ModelConverter/AutoMapper/AutoMapperModelVersionConverter.cs Removed the version converter implementation using AutoMapper.
examples/yaml/Program.cs Updated async call patterns and minor type style adjustment.
examples/workerServiceDependencyInjection/Worker.cs and Program.cs Improved XML documentation and added ConfigureAwait(false) for async calls.
examples/watch/Program.cs Introduced ConfigureAwait(false) in asynchronous enumerable call and added warning suppression for unused private members.
examples/restart/Program.cs, portforward, patch-aot, openTelemetryConsole, csrApproval, cp/Cp.cs Applied ConfigureAwait(false) for async operations and did minor style fixes.
README.md Updated SDK version and supported .NET targets.
.github/workflows/buildtest.yaml Upgraded dotnet SDK version from 8.0.x to 9.0.x.
Files not reviewed (5)
  • Directory.Packages.props: Language not supported
  • csharp.settings: Language not supported
  • examples/Directory.Build.props: Language not supported
  • examples/Directory.Build.targets: Language not supported
  • src/KubernetesClient.ModelConverter/KubernetesClient.ModelConverter.csproj: Language not supported
Comments suppressed due to low confidence (1)

examples/watch/Program.cs:19

  • Using ConfigureAwait(false) directly on an IAsyncEnumerable in an await foreach loop may cause compilation issues. Consider removing ConfigureAwait(false) from the asynchronous enumerable.
await foreach (var (type, item) in podlistResp.WatchAsync<V1Pod, V1PodList>().ConfigureAwait(false))

@brendandburns
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, tg123

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [brendandburns,tg123]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 27, 2025
@k8s-ci-robot k8s-ci-robot merged commit 001189d into kubernetes-client:master Apr 27, 2025
14 checks passed
@tg123
Copy link
Member Author

tg123 commented Apr 28, 2025

@brendandburns nuget token expired, need a new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants