-
Notifications
You must be signed in to change notification settings - Fork 311
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 for null before dereferencing #786
check for null before dereferencing #786
Conversation
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Codecov Report
@@ Coverage Diff @@
## master #786 +/- ##
=========================================
Coverage ? 32.34%
=========================================
Files ? 63
Lines ? 4956
Branches ? 0
=========================================
Hits ? 1603
Misses ? 3219
Partials ? 134
Continue to review full report at Codecov.
|
I just checked what happens if you remove storageClass setting from okteto.yml, it doesn't do anything. Maybe it should complain in a reverse fashion ( I'll overwrite the commit that I provided with a signed-off copy and someone can review this |
Fixes okteto#785. Not sure if it is valuable or needed to check the inverse, if dev.PersistentVolumeStorageClass is unset it will not crash (because it's not being dereferenced here.) Tested that it doesn't crash as I encountered in okteto#785 report anymore! :+1: Signed-off-by: Kingdon Barrett <kingdon.b@nd.edu>
a199e14
to
c03ddb4
Compare
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Thanks for the contribution @kingdonb! |
failure is unrelated to this PR, I'll merge and fix the core issue on a separate branch. |
Fixes #785, I think! Not sure if it is needed to check the inverse, if
dev.PersistentVolumeStorageClass is unset I think it will be fine
(because it's not being dereferenced here.)
Proposed changes
pvc.Spec.StorageClassName
Resulting output:
First the error, from okteto cli at version 1.8.1, then ~bin/okteto is the updated version at
okteto version a199e14