]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: allow services to be conditionally ranked 58517/head
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 8 Jul 2024 19:14:30 +0000 (15:14 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 10 Jul 2024 17:40:19 +0000 (13:40 -0400)
commit6aba0cd30b936b7f93b3ba17dcca797991cef2b5
treeb319f006938fc23d343c524d3a48134d75e2094f
parent59acb549cd1a60b04d076797b2fec4f2353b0c20
mgr/cephadm: allow services to be conditionally ranked

Add a spec argument to the `ranked` function. If this function returns
true the service will use ranks. In some cases we want 'rankedness'
to be conditional on parameters of the given service spec.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/serve.py
src/pybind/mgr/cephadm/services/cephadmservice.py
src/pybind/mgr/cephadm/services/nfs.py