Wire up CAAS unit provisioner #8174

Merged
merged 4 commits into from Dec 5, 2017

Conversation

Projects
None yet
3 participants
Member

axw commented Dec 5, 2017

Description of change

Wire the CAAS unit provisioner into the manifolds. Update the CAAS broker interface with a method for creating unit pods, and implement it for k8s; call it in the provisioner.

QA steps

None - cannot yet create CAAS units.

Documentation changes

None.

Bug reference

None.

axw added some commits Dec 5, 2017

caas: add Broker.EnsureUnit method
This method accepts a unit name and
provider-specific "spec", and creates
or updates resources according to that
spec for the unit. The resources created
must be identifiable given the unit name,
so that we can later delete them.

Also, change the EnsureOperator signature
to just accept a *caas.OperatorConfig,
rather than a function to get one. It's
always going to be called, so the
indirection doesn't help.
worker/caasunitprovisioner: call EnsureUnit
Call the ContainerBroker.EnsureUnit method
when the container spec for a unit changes.
worker/caasoperator: fix container-spec-set
Entity name first, then spec. If no unit
is specified, application is assumed.
Owner

wallyworld commented Dec 5, 2017

$$merge$$

Contributor

jujubot commented Dec 5, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit b786dff into juju:develop Dec 5, 2017

1 check passed

continuous-integration/jenkins/pr-merge This commit looks good
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment