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

Issue 60920043: Allow assigned units read access to machines (Closed)

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

Description

Allow assigned units read access to machines This branch allows unit agents to use the machiner API to get a machine object for their assigned machine. The server side api looks up the machine life and the necessary auth function is modified to allow assigned units as well as the machine owner. The implementation is done as a helper function because a downstream branch also uses it. This work will be used by the unit agent upgrade worker. https://code.launchpad.net/~wallyworld/juju-core/machiner-access-for-uniter/+merge/205290 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : Allow assigned units read access to machines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -21 lines) Patch
[revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
state/apiserver/common/auth.go View 1 chunk +38 lines, -0 lines 0 comments Download
state/apiserver/machine/common_test.go View 3 chunks +7 lines, -7 lines 0 comments Download
state/apiserver/machine/machiner.go View 1 chunk +2 lines, -4 lines 0 comments Download
state/apiserver/machine/machiner_test.go View 1 3 chunks +10 lines, -10 lines 0 comments Download
state/apiserver/machine/uniter_test.go View 1 1 chunk +188 lines, -0 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
10 years, 3 months ago (2014-02-07 07:17:40 UTC) #1
dimitern
Looks great so far, I have just a few suggestions. https://codereview.appspot.com/60920043/diff/1/state/apiserver/common/auth.go File state/apiserver/common/auth.go (right): https://codereview.appspot.com/60920043/diff/1/state/apiserver/common/auth.go#newcode13 ...
10 years, 3 months ago (2014-02-10 08:41:28 UTC) #2
wallyworld
Please take a look. https://codereview.appspot.com/60920043/diff/1/state/apiserver/common/auth.go File state/apiserver/common/auth.go (right): https://codereview.appspot.com/60920043/diff/1/state/apiserver/common/auth.go#newcode13 state/apiserver/common/auth.go:13: // OwnerOrDeployedUnitAuthFunc provides an AuthFunc ...
10 years, 3 months ago (2014-02-11 01:14:41 UTC) #3
dimitern
The diff is screwed, but otherwise LGTM assuming you made what you said.
10 years, 3 months ago (2014-02-11 09:53:47 UTC) #4
fwereade
10 years, 3 months ago (2014-02-14 09:08:35 UTC) #5
On 2014/02/11 09:53:47, dimitern wrote:
> The diff is screwed, but otherwise LGTM assuming you made what you said.

as discussed live, the upgrader doesn't need changes so not lgtm
Sign in to reply to this message.

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