Skip to content

master: check both places to fix bug 1372618 - #11045

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
sosiouxme:20160920-bz1372618-fix-plugin-config
Sep 28, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
sosiouxme:20160920-bz1372618-fix-plugin-config

Conversation

@sosiouxme

@sosiouxme sosiouxme commented Sep 21, 2016 •

Copy link
Copy Markdown
Member

@sosiouxme
sosiouxme force-pushed the 20160920-bz1372618-fix-plugin-config branch from 91bf290 to f9c06a3 Compare September 21, 2016 20:59
@sosiouxme

Copy link
Copy Markdown
Member Author

@openshift/api-review seems like the best fit to review this change?

@sosiouxme

Copy link
Copy Markdown
Member Author

pretty sure the test failure had nothing to do with me

@sosiouxme

Copy link
Copy Markdown
Member Author

[test] again for fun

@sosiouxme

Copy link
Copy Markdown
Member Author

https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_conformance/6409/consoleFull had a different conformance error:

• Failure [288.339 seconds]
deploymentconfigs
/data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:767
  with revision history limits
  /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:716
    should never persist more old deployments than acceptable after being observed by the controller [Conformance] [It]
    /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:715

    Expected an error to have occurred.  Got:
        <nil>: nil

    /data/src/github.com/openshift/origin/test/extended/deployments/deployments.go:696

[test] once more

@sosiouxme

Copy link
Copy Markdown
Member Author

@csrwng PTAL

@csrwng csrwng left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

some style comments

Comment thread pkg/cmd/server/start/start_master.go Outdated
}
}

// Look for ClusterResourceOverrideConfig in the PluginConfig

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fix godoc

Comment thread pkg/cmd/server/start/start_master.go Outdated
}

// Look for ClusterResourceOverrideConfig in the PluginConfig
func tryOverrideConfig(ac configapi.AdmissionConfig) (*overrideapi.ClusterResourceOverrideConfig, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe use a more descriptive function name?

Comment thread pkg/cmd/server/start/start_master.go Outdated

// 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 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread pkg/cmd/server/start/start_master.go Outdated
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 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Put if in its own line, get rid of the else

Comment thread pkg/cmd/server/start/start_master.go Outdated
}
if overrideConfig, err := override.ReadConfig(configFile); err != nil {
return nil, err
} else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

get rid of the else

@pweil-

pweil- commented Sep 27, 2016

Copy link
Copy Markdown

@mfojtik PTAL

@sosiouxme
sosiouxme force-pushed the 20160920-bz1372618-fix-plugin-config branch from eb77c69 to fdedd83 Compare September 27, 2016 20:08
@sosiouxme

Copy link
Copy Markdown
Member Author

Addressed @csrwng 's feedback. Going ahead with [merge] to get it into online ASAP.

@openshift-bot

openshift-bot commented Sep 27, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9390/) (Image: devenv-rhel7_5092)

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to fdedd83

@abhgupta

Copy link
Copy Markdown
Member

re-[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to fdedd83

@openshift-bot

Copy link
Copy Markdown
Contributor

@openshift-bot
openshift-bot merged commit 2af9a84 into openshift:master Sep 28, 2016
@sosiouxme
sosiouxme deleted the 20160920-bz1372618-fix-plugin-config branch September 28, 2016 13:03
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.

5 participants