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

Delete a redundant arg and optimize some codes in the pkg/cmd/admin/registry/registry.go #10474

Merged

Conversation

miaoyq
Copy link
Contributor

@miaoyq miaoyq commented Aug 17, 2016

  1. Delete the arg namespace in the generateSecretsConfig, because it is not used.
  2. Refactor some codes in the RunCmdRegistry, make it more clean.

@miaoyq
Copy link
Contributor Author

miaoyq commented Aug 27, 2016

/cc @smarterclayton Thanks!

@smarterclayton smarterclayton added this to the 1.4.0 milestone Aug 29, 2016
@miaoyq miaoyq force-pushed the optimization-code-of-registry branch from 5e53af5 to e2830cf Compare September 27, 2016 11:19
@miaoyq
Copy link
Contributor Author

miaoyq commented Sep 27, 2016

@smarterclayton Can this PR be merged? thanks!

}

secretEnv = app.Environment{
"OPENSHIFT_MASTER": config.Host,
"OPENSHIFT_CA_DATA": string(config.CAData),
"OPENSHIFT_KEY_DATA": string(config.KeyData),
"OPENSHIFT_CERT_DATA": string(config.CertData),
"OPENSHIFT_INSECURE": insecure,
"OPENSHIFT_INSECURE": fmt.Sprintf("%v", config.Insecure),
Copy link
Contributor

Choose a reason for hiding this comment

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

It would probably be better to use %t here because we want Insecure to be flagged as a bool.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for review! @smarterclayton
Updated.

@miaoyq miaoyq force-pushed the optimization-code-of-registry branch from e2830cf to ef6ad21 Compare September 28, 2016 00:52
@smarterclayton
Copy link
Contributor

LGTM [merge] thanks

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@miaoyq miaoyq force-pushed the optimization-code-of-registry branch from ef6ad21 to 6ac5580 Compare September 29, 2016 01:44
@miaoyq miaoyq force-pushed the optimization-code-of-registry branch from 6ac5580 to 876471e Compare October 13, 2016 06:21
@miaoyq miaoyq force-pushed the optimization-code-of-registry branch from 876471e to 72c1367 Compare October 13, 2016 07:49
@miaoyq
Copy link
Contributor Author

miaoyq commented Oct 13, 2016

@smarterclayton This PR isn't merged still, could you please trigger another test and merge process? Thanks!

@smarterclayton
Copy link
Contributor

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 72c1367

@openshift-bot
Copy link
Contributor

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

@smarterclayton
Copy link
Contributor

smarterclayton commented Oct 13, 2016 via email

@openshift-bot
Copy link
Contributor

openshift-bot commented Oct 14, 2016

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

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 72c1367

@openshift-bot openshift-bot merged commit 098e0ee into openshift:master Oct 14, 2016
@miaoyq miaoyq deleted the optimization-code-of-registry branch October 15, 2016 02:44
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

4 participants