mds: support mds with multus

to support mds with multus, we don't need
to add `--public-adr`, if multus is selected as
the network in cephCluster CR.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit a1a127f6ba)
This commit is contained in:
subhamkrai authored and Mergify committed 2023-02-08 15:37:39 +00:00
1 parent 52227ddcae
commit 935d3bfaed
1 file changed
+1 -1
+1 -1
View File
@@ -132,7 +132,7 @@ func (c *Cluster) makeMdsDaemonContainer(mdsConfig *mdsConfig) v1.Container {
"--foreground",
)
if !c.clusterSpec.Network.IsHost() {
if !c.clusterSpec.Network.IsHost() && !c.clusterSpec.Network.IsMultus() {
args = append(args,
cephconfig.NewFlag("public-addr", controller.ContainerEnvVarReference(podIPEnvVar)))
}