Skip to content
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

Actually assign loaded cert when generating pfx #1609

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

rmja
Copy link
Contributor

@rmja rmja commented Jan 20, 2025

Fix regression in .net 9 when migrating to X509CertificateLoader.

Copy link

linux-foundation-easycla bot commented Jan 20, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot
Copy link
Contributor

Welcome @rmja!

It looks like this is your first PR to kubernetes-client/csharp 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-client/csharp has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jan 20, 2025
@tg123
Copy link
Member

tg123 commented Jan 20, 2025

thanks for catching this silly mistake

could you please sign cla and double confirm why ut didn't cover it well?
i checked ut when i was doing the upgrade, seems it already covered the case

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 20, 2025
@rmja
Copy link
Contributor Author

rmja commented Jan 20, 2025

I found that the test that would have caught this was being skipped for Windows. This is now fixed. I believe that the cla is signed, right?

@tg123
Copy link
Member

tg123 commented Jan 20, 2025

/LGTM

anyway to make this covered in ut?

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 20, 2025
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 20, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rmja, 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:

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

@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (master@f7e7613). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/KubernetesClient/CertUtils.cs 50.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1609   +/-   ##
=========================================
  Coverage          ?   70.64%           
=========================================
  Files             ?       89           
  Lines             ?     2681           
  Branches          ?      557           
=========================================
  Hits              ?     1894           
  Misses            ?      787           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rmja
Copy link
Contributor Author

rmja commented Jan 21, 2025

/LGTM

anyway to make this covered in ut?

This is covered now in the tests! The problem is that the tests that would have detected this were disabled on Windows, and the issue only shows on Windows.

Looking forward to a release with this fix, as Windows compatability is currently broken.

@k8s-ci-robot k8s-ci-robot merged commit 73b318b into kubernetes-client:master Jan 21, 2025
12 of 14 checks passed
@rmja rmja deleted the fix-cert-utils branch January 21, 2025 05:26
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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants