-
Notifications
You must be signed in to change notification settings - Fork 430
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
Check UserManaged is not nil in azure/converters/diagnostics #4819
Check UserManaged is not nil in azure/converters/diagnostics #4819
Conversation
|
Welcome @Patryk-Stefanski! |
Hi @Patryk-Stefanski. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/kind bug |
/ok-to-test |
/lgtm |
LGTM label has been added. Git tree hash: 2d5a49dd2b6615d2ee8c41c705b264908af0f80f
|
Enabled: ptr.To(true), | ||
StorageURI: &diagnostics.Boot.UserManaged.StorageAccountURI, | ||
}, | ||
if diagnostics.Boot.UserManaged != nil { |
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.
can we add a new UT case "nil diagnostics.Boot.UserManaged" to the TestGetDiagnosticsProfile
spec under azure/converters/diagnostics_test.go?
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.
thank you!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4819 +/- ##
==========================================
- Coverage 62.48% 62.01% -0.47%
==========================================
Files 196 201 +5
Lines 16188 16858 +670
==========================================
+ Hits 10115 10455 +340
- Misses 5333 5620 +287
- Partials 740 783 +43 ☔ View full report in Codecov by Sentry. |
e4e61ad
to
b47586c
Compare
/assign @jackfrancis |
@Patryk-Stefanski Please squash your commits when you've gotten LGTM. Thanks! |
/lgtm |
LGTM label has been added. Git tree hash: 28f27fc96f836c5a8a484e572caab4ef95a5033b
|
b47586c
to
d8f1e9d
Compare
Thank you for squashing! |
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.
/lgtm
/approve
/cherry-pick release-1.14
/cherry-pick release-1.15
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nojnhuh 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 |
/retest |
1 similar comment
/retest |
What this PR does / why we need it: Adds nil check for UserManagedDiagnosticsStorage in azure/converters/diagnostics.go . This prevents a crash in the case that the StorageAccountURI provided is empty.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Special notes for your reviewer:
TODOs:
Release note: