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

Issue 22720043: Push environment secrets after connecting API

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 6 months ago by axw
Modified:
10 years, 6 months ago
Reviewers:
mp+194288, jameinel, fwereade, rog
Visibility:
Public.

Description

Push environment secrets after connecting API This is a much simpler alternative to https://codereview.appspot.com/22080044/, implementing the same logic as is present for the straight-to-state juju.NewConn. As secrets-pushing will be obsoleted by synchronous bootstrapping, which is slated for introduction soon, I have a strong preference for this option. There's a drive-by-fix to the EnvironmentSet API which simplifies testing: allow agent-version in the parameters as long as it matches the existing value. https://code.launchpad.net/~axwalk/juju-core/api-push-env-secrets-take2/+merge/194288 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Push environment secrets after connecting API #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -5 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M juju/api.go View 1 1 chunk +30 lines, -2 lines 3 comments Download
M juju/apiconn_test.go View 6 chunks +19 lines, -1 line 1 comment Download
M juju/export_test.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/apiserver/client/client.go View 1 chunk +5 lines, -2 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6
axw
Please take a look.
10 years, 6 months ago (2013-11-07 07:07:08 UTC) #1
axw
Please take a look.
10 years, 6 months ago (2013-11-07 07:20:30 UTC) #2
jameinel
LGTM I like this quite a bit better than the ones that poked at api.Open.
10 years, 6 months ago (2013-11-07 07:22:34 UTC) #3
fwereade
LGTM, very nice. https://codereview.appspot.com/22720043/diff/20001/juju/api.go File juju/api.go (right): https://codereview.appspot.com/22720043/diff/20001/juju/api.go#newcode90 juju/api.go:90: return client.EnvironmentSet(cfg) Ehh, EnvironmentSet requires a ...
10 years, 6 months ago (2013-11-07 09:23:25 UTC) #4
axw
https://codereview.appspot.com/22720043/diff/20001/juju/api.go File juju/api.go (right): https://codereview.appspot.com/22720043/diff/20001/juju/api.go#newcode90 juju/api.go:90: return client.EnvironmentSet(cfg) On 2013/11/07 09:23:26, fwereade wrote: > Ehh, ...
10 years, 6 months ago (2013-11-07 09:29:17 UTC) #5
rog
10 years, 6 months ago (2013-11-07 09:41:42 UTC) #6
LGTM, thanks.

https://codereview.appspot.com/22720043/diff/20001/juju/api.go
File juju/api.go (right):

https://codereview.appspot.com/22720043/diff/20001/juju/api.go#newcode54
juju/api.go:54: // TODO(rog): handle errUnauthorized when the API handles
passwords.
d
(this should have gone ages ago!)
Sign in to reply to this message.

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