weixin_39912303 2020-11-29 13:32
浏览 0

Command "show-generation" Becomes "diff" + Behaviour From Spec.

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 diff shows:

test-branch:
  created: 12 Apr 2019 14:13:25+02:00
  created-by: admin
  applications: []
  • juju track test-branch redis/0
  • juju diff shows:

test-branch:
  created: 12 Apr 2019 14:13:25+02:00
  created-by: admin
  applications:
  - application: redis
    progress: 1/2
    config: {}
  • juju diff --all shows:

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-branch shows:

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 many shows ERROR expected at most 1 branch name, got 2 arguments.

Documentation changes

None

Bug reference

N/A

该提问来源于开源项目:juju/juju

  • 写回答

7条回答 默认 最新

  • weixin_39912303 2020-11-29 13:32
    关注
    评论

报告相同问题?