[TryMOS] Function install_ceph changed
Function install_ceph modified to prevent direct patch rook-ceph/cephcluster without miraceph
Also in this function we do scaledown ceph-controller from 3 to 1 instsnce
Related-Prod: PRODX-18984
Change-Id: Ie28a850a09309fb48fd072460f1950b8ebf21a7a
diff --git a/trymos/image_build/files/usr/share/trymos/launch.sh b/trymos/image_build/files/usr/share/trymos/launch.sh
index 12570a7..eeefa88 100755
--- a/trymos/image_build/files/usr/share/trymos/launch.sh
+++ b/trymos/image_build/files/usr/share/trymos/launch.sh
@@ -294,8 +294,9 @@
}
retry 30 "Get secret openstack-ceph-keys failed" get_ceph_secret_retry
- # NOTE(ohryhorov): the patch below is required until ceph-operator has ability to pass toleration values for rook-ceph
- kubectl patch cephcluster cephcluster -n rook-ceph --patch '{"spec": {"placement": {"all": {"tolerations": [{"effect": "NoSchedule", "key": "com.docker.ucp.manager", "operator": "Exists"}]}}}}' --type=merge
+# NOTE(okononenko): do scale deploy for ceph-controller here because it not relised as config yet
+# TODO(okononenko): drop this when number of replicas for ceph controller might be specified via chart values. Related Task:PRODX-18984
+ kubectl scale --replicas=1 deployments/ceph-controller -n ceph-lcm-mirantis
}
function install_openstack {