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

Issue 13047043: User configurable tools/image URLs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by wallyworld
Modified:
10 years, 8 months ago
Reviewers:
mp+180493, jameinel, fwereade
Visibility:
Public.

Description

User configurable tools/image URLs A new framework for processing simplestreams URLs is introduced, as well as user configurable URLs. Config keys for user override of image and tools metdata URLs are: "image-metadata-url" and "tools-metadata-url". The framework sets the order of precedence to be: 1. user, 2. provider specific, 3. default By moving to image and tools urls, the user can separately control how image ids are found and where tools come from. https://code.launchpad.net/~wallyworld/juju-core/tools-metadata-config/+merge/180493 Requires: https://code.launchpad.net/~wallyworld/juju-core/simplestreams-mirrors/+merge/180487 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : User configurable tools/image URLs #

Total comments: 9

Patch Set 3 : User configurable tools/image URLs #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -95 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/config/config.go View 1 2 3 chunks +22 lines, -0 lines 2 comments Download
M environs/config/config_test.go View 1 2 3 chunks +25 lines, -0 lines 0 comments Download
M environs/imagemetadata/simplestreams.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/imagemetadata/simplestreams_test.go View 15 chunks +18 lines, -17 lines 0 comments Download
A environs/imagemetadata/urls.go View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A environs/imagemetadata/urls_test.go View 1 chunk +57 lines, -0 lines 0 comments Download
M environs/imagemetadata/validation_test.go View 1 2 8 chunks +9 lines, -5 lines 0 comments Download
M environs/simplestreams/testing/testing.go View 2 chunks +2 lines, -0 lines 0 comments Download
M environs/tools/simplestreams.go View 1 2 1 chunk +1 line, -2 lines 0 comments Download
A environs/tools/urls.go View 1 2 1 chunk +30 lines, -0 lines 1 comment Download
A environs/tools/urls_test.go View 1 2 1 chunk +57 lines, -0 lines 1 comment Download
M environs/tools/validation_test.go View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M provider/azure/environ.go View 1 3 chunks +12 lines, -8 lines 0 comments Download
M provider/azure/environ_test.go View 1 1 chunk +0 lines, -9 lines 0 comments Download
M provider/azure/instancetype.go View 1 4 chunks +7 lines, -12 lines 0 comments Download
M provider/azure/instancetype_test.go View 1 8 chunks +17 lines, -8 lines 0 comments Download
M provider/dummy/environs.go View 1 2 3 chunks +14 lines, -0 lines 0 comments Download
M provider/ec2/ec2.go View 1 2 2 chunks +2 lines, -8 lines 0 comments Download
M provider/ec2/export_test.go View 1 1 chunk +0 lines, -4 lines 0 comments Download
M provider/ec2/local_test.go View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M provider/openstack/export_test.go View 1 1 chunk +0 lines, -4 lines 0 comments Download
M provider/openstack/image.go View 1 1 chunk +1 line, -1 line 0 comments Download
M provider/openstack/local_test.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M provider/openstack/provider.go View 1 4 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 7
wallyworld
Please take a look.
10 years, 8 months ago (2013-08-16 08:18:08 UTC) #1
wallyworld
Please take a look.
10 years, 8 months ago (2013-08-20 04:05:30 UTC) #2
fwereade
Thank you, nice clean refactoring; would appreciate a quick discussion about invalid config defaults before ...
10 years, 8 months ago (2013-08-21 10:03:29 UTC) #3
wallyworld
https://codereview.appspot.com/13047043/diff/4001/environs/config/config.go File environs/config/config.go (right): https://codereview.appspot.com/13047043/diff/4001/environs/config/config.go#newcode335 environs/config/config.go:335: func (c *Config) ToolsMetadataURL() string { On 2013/08/21 10:03:29, ...
10 years, 8 months ago (2013-08-21 11:10:45 UTC) #4
wallyworld
Please take a look. https://codereview.appspot.com/13047043/diff/4001/environs/config/config.go File environs/config/config.go (right): https://codereview.appspot.com/13047043/diff/4001/environs/config/config.go#newcode335 environs/config/config.go:335: func (c *Config) ToolsMetadataURL() string ...
10 years, 8 months ago (2013-08-22 08:36:42 UTC) #5
fwereade
LGTM modulo minor comments (I *would* really prefer tools *metadata* over just tools, though...) https://codereview.appspot.com/13047043/diff/4001/environs/config/config.go ...
10 years, 8 months ago (2013-08-22 10:44:53 UTC) #6
jameinel
10 years, 8 months ago (2013-08-22 12:22:14 UTC) #7
https://codereview.appspot.com/13047043/diff/12001/environs/tools/urls.go
File environs/tools/urls.go (right):

https://codereview.appspot.com/13047043/diff/12001/environs/tools/urls.go#new...
environs/tools/urls.go:8: type SupportsCustomURLs interface {
docstrings on exported types
Sign in to reply to this message.

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