]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: drop deploy_arguments key from deploy config JSON
authorJohn Mulligan <jmulligan@redhat.com>
Thu, 1 Jun 2023 17:27:37 +0000 (13:27 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 15 Jun 2023 20:35:34 +0000 (16:35 -0400)
commit6b0fba88e358d19c28d1f1ea3302aa5eeb8a4a09
tree879f4471b4a221f3b89786f4342d524de7f0fe61
parent96d12f97b0014354e60c9987a7e061197bd481c6
cephadm: drop deploy_arguments key from deploy config JSON

Drop the now unnecessary deploy_arguments subsection from the JSON
object that the new `_orch deploy` takes. The intermediate code that
used it in the ceph mgr module has been replaced with `params`.

We still want to share some code with the old deploy, especially the
default values for various things that get attached to `ctx`. In
some cases this is particularly important as not all code checks
that `ctx` has an attribute first. Create an `ArgumentFacade` type
to reuse the `add_argument` calls for deploy, and instead store the
default key-value pairs for `ctx`.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadm.py