]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: let smb sidecars be extra-ified
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 8 Dec 2025 20:39:51 +0000 (15:39 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 13 Feb 2026 16:38:12 +0000 (11:38 -0500)
Add code needed to add extra custom configuration files to sidecar
containers.

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

index 1f2cebed34b9d55063e14833ea2d095462445a09..b44445b7b58081fd78a30876fa3abd169c9be2f5 100644 (file)
@@ -806,7 +806,7 @@ class SMB(ContainerDaemonForm):
             self.identity, smb_ctr.name()
         )
         img = smb_ctr.container_image() or ctx.image or self.default_image
-        return SidecarContainer(
+        sc = SidecarContainer(
             ctx,
             entrypoint='',
             image=img,
@@ -818,6 +818,8 @@ class SMB(ContainerDaemonForm):
             init=False,
             remove=True,
         )
+        deployment_utils.enhance_container(ctx, sc)
+        return sc
 
     def container(self, ctx: CephadmContext) -> CephContainer:
         ctr = daemon_to_container(ctx, self, host_network=self._cfg.clustered)