Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(925)

Issue 6500052: environs: add BootstrapConfig

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 8 months ago by rog
Modified:
11 years, 8 months ago
Reviewers:
mp+122121
Visibility:
Public.

Description

environs: add BootstrapConfig Also add flags to environs.FindTools and environs.BestTools, LoggingSuite to JujuSuite, and make the Config in cloudinit a *config.Config. https://code.launchpad.net/~rogpeppe/juju-core/042-environs-bootstrap-config/+merge/122121 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs: add BootstrapConfig #

Total comments: 12

Patch Set 3 : environs: add BootstrapConfig #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -198 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/cmd_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/main_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 4 chunks +8 lines, -5 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 2 8 chunks +36 lines, -16 lines 0 comments Download
M environs/config.go View 2 chunks +19 lines, -0 lines 0 comments Download
M environs/config/config.go View 2 chunks +3 lines, -1 line 0 comments Download
M environs/dummy/environs.go View 1 2 4 chunks +28 lines, -7 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 4 chunks +11 lines, -24 lines 0 comments Download
M environs/jujutest/test.go View 5 chunks +14 lines, -19 lines 0 comments Download
M environs/tools.go View 1 2 2 chunks +37 lines, -14 lines 0 comments Download
M environs/tools_test.go View 1 2 7 chunks +159 lines, -108 lines 0 comments Download
M state/machine.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
rog
Please take a look.
11 years, 8 months ago (2012-08-30 18:36:09 UTC) #1
niemeyer
This is fantastic Roger, thank you! A few suggestions only, and LGTM. https://codereview.appspot.com/6500052/diff/2001/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go ...
11 years, 8 months ago (2012-08-30 23:01:40 UTC) #2
dave_cheney.net
Excellent. This fixed my deploy problems lucky(~) % time (juju bootstrap --upload-tools; juju deploy mongodb ...
11 years, 8 months ago (2012-08-31 01:58:20 UTC) #3
rog
11 years, 8 months ago (2012-08-31 05:29:37 UTC) #4
*** Submitted:

environs: add BootstrapConfig

Also add flags to environs.FindTools and environs.BestTools,
LoggingSuite to JujuSuite, and make the Config in cloudinit
a *config.Config.

R=niemeyer, dfc
CC=
https://codereview.appspot.com/6500052

https://codereview.appspot.com/6500052/diff/2001/environs/cloudinit/cloudinit.go
File environs/cloudinit/cloudinit.go (right):

https://codereview.appspot.com/6500052/diff/2001/environs/cloudinit/cloudinit...
environs/cloudinit/cloudinit.go:61: Config *config.Config
On 2012/08/30 23:01:40, niemeyer wrote:
> Nice, thanks for fixing that as well.

My pleasure :-)

https://codereview.appspot.com/6500052/diff/2001/environs/tools.go
File environs/tools.go (right):

https://codereview.appspot.com/6500052/diff/2001/environs/tools.go#newcode223
environs/tools.go:223: allowDev := vers.IsDev() || flags&DevVersion != 0
On 2012/08/30 23:01:40, niemeyer wrote:
> allowHigher := flags&HighestVersion != 0

Done.

https://codereview.appspot.com/6500052/diff/2001/environs/tools.go#newcode389
environs/tools.go:389: // be chosen. The default is to choose a version no
higher than specified.
On 2012/08/30 23:01:40, niemeyer wrote:
> // HighestVersion indicates that versions above the version being
> // searched for may be included in the search. The default behavior
> // is to search for versions <= the one provided.
> 
> Please omit the (minor, patch) information. This is CompatVersion's job.

Nice description. Done.

https://codereview.appspot.com/6500052/diff/2001/environs/tools.go#newcode394
environs/tools.go:394: // version.
On 2012/08/30 23:01:40, niemeyer wrote:
> // DevVersion includes development versions in the search, even
> // when the version to match against isn't a development version.

Also nice. Done.

https://codereview.appspot.com/6500052/diff/2001/environs/tools.go#newcode398
environs/tools.go:398: // must be the same as specified. It is not yet
implemented.
On 2012/08/30 23:01:40, niemeyer wrote:
> s/It is not yet implemented./At the moment this flag is required./

Done.

https://codereview.appspot.com/6500052/diff/2001/environs/tools_test.go
File environs/tools_test.go (right):

https://codereview.appspot.com/6500052/diff/2001/environs/tools_test.go#newco...
environs/tools_test.go:387: flags environs.ToolsSearchFlags
On 2012/08/30 23:01:40, niemeyer wrote:
> go fmt

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b