Repository navigation
master: check both places to fix bug 1372618 - #11045
openshift-bot merged 1 commit into
Conversation
91bf290 to
f9c06a3
Compare
|
@openshift/api-review seems like the best fit to review this change? |
|
pretty sure the test failure had nothing to do with me |
|
[test] again for fun |
|
https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/6409/consoleFull had a different conformance error: [test] once more |
f9c06a3 to
eb77c69
Compare
|
@csrwng PTAL |
| } | ||
| } | ||
|
|
||
| // Look for ClusterResourceOverrideConfig in the PluginConfig |
| } | ||
|
|
||
| // Look for ClusterResourceOverrideConfig in the PluginConfig | ||
| func tryOverrideConfig(ac configapi.AdmissionConfig) (*overrideapi.ClusterResourceOverrideConfig, error) { |
There was a problem hiding this comment.
maybe use a more descriptive function name?
|
|
||
| // Look in two potential places where ClusterResourceOverrideConfig can be specified | ||
| func getResourceOverrideConfig(oc *origin.MasterConfig) (*overrideapi.ClusterResourceOverrideConfig, error) { | ||
| if overrideConfig, err := tryOverrideConfig(oc.Options.AdmissionConfig); err != nil { |
There was a problem hiding this comment.
move the if to its own line, followed by 2 if's ...
https://golang.org/doc/effective_go.html#if
| if oc.Options.KubernetesMasterConfig == nil { // external kube gets you a nil pointer here | ||
| return nil, nil | ||
| } | ||
| if overrideConfig, err := tryOverrideConfig(oc.Options.KubernetesMasterConfig.AdmissionConfig); err != nil { |
There was a problem hiding this comment.
Put if in its own line, get rid of the else
| } | ||
| if overrideConfig, err := override.ReadConfig(configFile); err != nil { | ||
| return nil, err | ||
| } else { |
|
@mfojtik PTAL |
eb77c69 to
fdedd83
Compare
|
Addressed @csrwng 's feedback. Going ahead with [merge] to get it into online ASAP. |
|
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9390/) (Image: devenv-rhel7_5092) |
|
Evaluated for origin merge up to fdedd83 |
|
re-[test] |
|
Evaluated for origin test up to fdedd83 |
|
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9390/) |
https://bugzilla.redhat.com/show_bug.cgi?id=1372618
openshift/origin-web-console#554