]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cephadm: convert init containers script to use a template
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 11 Dec 2023 19:45:46 +0000 (14:45 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 2 Jan 2024 14:30:21 +0000 (09:30 -0500)
commit11ccb59e8e1254305143c82efe8a3b2bce070ffe
tree4d80534b5dc9a93657d59dc969887f44b603f39b
parent57540a28c5c83140c2429f1e94fbaeee06d80f64
cephadm: convert init containers script to use a template

Convert the init containers run script to be based on a template, like
the sidecar run scripts are. The new script is loosely based on the
sidecars run script but only does actions in batches - logically
iterating over each init container configured.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadmlib/container_types.py
src/cephadm/cephadmlib/runscripts.py
src/cephadm/cephadmlib/templates/init_containers.run.j2 [new file with mode: 0644]
src/cephadm/cephadmlib/templating.py
src/cephadm/tests/test_custom_container.py