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

Add a nil check to Container.SecurityContext #12446

Conversation

knobunc
Copy link
Contributor

@knobunc knobunc commented Jan 11, 2017

We were panicing sometimes when we dereferenced a nil pointer when
looking at the Container.SecurityContext which is defined as optional.

This fix adds a check to see if it is not nil before dereferencing.

Fixes bug 1412087 (https://bugzilla.redhat.com/show_bug.cgi?id=1412087)

We were panicing sometimes when we dereferenced a nil pointer when
looking at the Container.SecurityContext which is defined as optional.

This fix adds a check to see if it is not nil before dereferencing.

Fixes bug 1412087 (https://bugzilla.redhat.com/show_bug.cgi?id=1412087)
@knobunc knobunc self-assigned this Jan 11, 2017
@knobunc knobunc requested review from ncdc and dcbw January 11, 2017 15:03
@eparis
Copy link
Member

eparis commented Jan 11, 2017

[merge]

Copy link
Contributor

@ncdc ncdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test case?

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 6255e65

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@dcbw
Copy link
Contributor

dcbw commented Jan 11, 2017

LGTM

@knobunc
Copy link
Contributor Author

knobunc commented Jan 11, 2017

[test] last flake was upstream flake kubernetes/kubernetes#36564

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 6255e65

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12759/) (Base Commit: 6468143)

@openshift-bot
Copy link
Contributor

openshift-bot commented Jan 12, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12778/) (Base Commit: fc73b80) (Image: devenv-rhel7_5661)

@openshift-bot openshift-bot merged commit 38831af into openshift:master Jan 12, 2017
@knobunc knobunc deleted the bug/bz1412087-securitycontext-nil-dereference-panic branch June 7, 2018 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants