-
Notifications
You must be signed in to change notification settings - Fork 299
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
YamlDotNot is not thread-safe #1536
YamlDotNot is not thread-safe #1536
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: nathanwoctopusdeploy The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -12,6 +12,27 @@ namespace k8s | |||
/// </summary> | |||
public static class KubernetesYaml | |||
{ | |||
//private static DeserializerBuilder GetCommonDeserializerBuilder() => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing YamlDotNet Deserializer to no longer be a static makes the test pass
a24b776
to
e17740b
Compare
oh seems some state inside |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #1536 +/- ##
=========================================
Coverage ? 62.07%
=========================================
Files ? 102
Lines ? 3014
Branches ? 636
=========================================
Hits ? 1871
Misses ? 1143
Partials ? 0 ☔ View full report in Codecov by Sentry. |
Hi @tg123 I'm not familiar enough with the code base and YamlDotNet library to know what the best direction would be to fix this. The PR was created to provide an easy reproduction of the issue. |
This PR demonstrates that
KubernetesClientConfiguration.LoadKubeConfig
is not thread-safe due to YamlDotNot Deserializers.