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

k8s probe: Fix a panic (nil pointer deref) when a cronjob has never been scheduled #2785

Merged
merged 1 commit into from
Aug 1, 2017

Conversation

ekimekim
Copy link
Contributor

@ekimekim ekimekim commented Aug 1, 2017

in which case cj.Status.LastScheduled is nil.
New behaviour is to omit it from the map (and therefore the display) if it has never been scheduled.

Fixes #2783

…een scheduled

in which case cj.Status.LastScheduled is nil.
New behaviour is to omit it from the map (and therefore the display) if it has never been scheduled.
@ekimekim ekimekim requested a review from rade August 1, 2017 21:19
@ekimekim
Copy link
Contributor Author

ekimekim commented Aug 1, 2017

Tested with and without a value for LastScheduled.

@ekimekim ekimekim merged commit c89d744 into master Aug 1, 2017
@ekimekim ekimekim deleted the mike/k8s/fix-never-scheduled-cronjob branch August 1, 2017 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants