-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Bug 1425706 - protect from nil tlsConfig. #13072
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
Conversation
In very special case (client config does not contain ca cert nor auth cert nor set tls-insecure), tlsConfig can be nil and no error is returned from TLSConfigFor either, thus we need to check for nil on tlsConfig before proceeding in image pruning.
[test] |
Evaluated for origin test up to 174e3dd |
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
LGTM |
Will merge on green tests. |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/470/) (Base Commit: 80b2f6d) |
Flake #12784, otherwise it's green. [merge] |
Flake #13097. [merge] |
Evaluated for origin merge up to 174e3dd |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_future/539/) (Base Commit: f1dd3c7) (Image: devenv-rhel7_5970) |
In very special case (client config does not contain ca cert nor auth cert nor
set tls-insecure), tlsConfig can be nil and no error is returned from TLSConfigFor
either, thus we need to check for nil on tlsConfig before proceeding in
image pruning.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1425706.
@miminar || @legionus ptal