Descriptionprovisioner: Start using the API instead of state
This changes the provisioner worker to use the API,
and due to that some small changes were needed, with
regards to authorization. Now only the environment
provisioner uses the environWatcher, the LXC one
just stops it right away after WaitForEnviron returns.
Also the provisioner main loop needed to change a bit
to accommodate this.
During the initial review some concerns were raised
about giving LXC provisioner access to the environment
and thus to cloud secrets. This is partially addressed
here with changes to agent.Config, and now we support
two authenticators: environment and agent config based.
In follow-ups the additional changes to restrict access
to any secrets in the environment configuration will be
made.
Live tested on EC2 and it works!
https://code.launchpad.net/~dimitern/juju-core/144-worker-provisioner-uses-api/+merge/187191
Requires: https://code.launchpad.net/~dimitern/juju-core/143-api-agent-containertype/+merge/186746
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 26
Patch Set 2 : provisioner: Start using the API instead of state #
Total comments: 14
Patch Set 3 : provisioner: Start using the API instead of state #Patch Set 4 : provisioner: Start using the API instead of state #
MessagesTotal messages: 8
|