Description of change
This patch:
- Replaces the show-generation command with the diff command.
- Performs attendant file, identifier and comment name modifications.
- Allows the operator to supply the --all flag, which influences whether unit tracking detail is shown.
- Allows omission of branch name to get information from all active branches.
- Uses the branch configuration deltas to show new values for changed charm configuration settings.
QA steps
export JUJU_DEV_FEATURE_FLAGS=generations- Bootstrap.
juju deploy redis -n 2.juju branch test-branch.juju diffshows:
test-branch:
created: 12 Apr 2019 14:13:25+02:00
created-by: admin
applications: []
juju track test-branch redis/0juju diffshows:
test-branch:
created: 12 Apr 2019 14:13:25+02:00
created-by: admin
applications:
- application: redis
progress: 1/2
config: {}
juju diff --allshows:
test-branch:
created: 12 Apr 2019 14:13:25+02:00
created-by: admin
applications:
- application: redis
progress: 1/2
units:
tracking:
- redis/0
incomplete:
- redis/1
config: {}
juju config redis databases=4 --branch test-branch.juju config redis password=pass --branch master.juju config redis --reset password --branch test-branch.juju diff test-branchshows:
test-branch:
created: 12 Apr 2019 14:13:25+02:00
created-by: admin
applications:
- application: redis
progress: 1/2
config:
databases: 4
password: ""
juju diff too manyshowsERROR expected at most 1 branch name, got 2 arguments.
Documentation changes
None
Bug reference
N/A
该提问来源于开源项目:juju/juju