Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
apiserver: organise facades #7606
Conversation
added a commit
to axw/juju
that referenced
this pull request
Jul 10, 2017
added a commit
to axw/juju
that referenced
this pull request
Jul 10, 2017
added a commit
to axw/juju
that referenced
this pull request
Jul 10, 2017
added a commit
that referenced
this pull request
Jul 10, 2017
|
Offhand it feels like storageprovisioner can be made an 'agent' and we should fix 'imagemetadata' because it should not be serving 2 masters. If we need to pull some of the code into 'common', that would be ok, but we should have a separate facade for clients than for agents. Not that you have to do that for this patch, but its a clear mistake to combine them. |
Agreed. I have filed a bug (https://bugs.launchpad.net/juju/+bug/1703582) and added a card. |
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
axw commentedJul 10, 2017
Description of change
Organise facades into subdirectories:
There are a few facades that do not have
an obvious home:
(for model-level storage), and on machine
agents (for machine-level storage).
purposes: it serves the client, for listing,
adding and removing image metadata; and it
serves the image metadata worker. Because the
image metadata client code is behind a feature
flag, we could probably break API compatibility,
and make it worker-only. I've left it alone for
now, and put it in the facades/client package.
each other, but it accepts only client
authentication. Nevertheless, I've put it in the
facades/controller package.
And then there were some bugs in facade auth:
have used AuthController. It has been updated
to use the latter.
to use AuthClient.
to AuthMachineAgent, when AuthController would
do. Simplified.
agents, now does not.
controller unnecessarily; dropped.
QA steps
Run tests. Bootstrap.
Documentation changes
None.
Bug reference
None.