Merge pull request #4222 from sp98/fix-orchestration-restart

stop orchestration restart on device config map update for osd on pvc
This commit is contained in:
Travis Nielsen authored and GitHub committed 2019-10-30 13:11:27 -06:00
commit b04567c0bd
1 file changed
+4
+4
View File
@@ -719,6 +719,10 @@ func (c *ClusterController) onDeviceCMUpdate(oldObj, newObj interface{}) {
logger.Infof("Cluster %s is not ready. Skipping orchestration on device change", cluster.Namespace)
continue
}
if len(cluster.Spec.Storage.StorageClassDeviceSets) > 0 {
logger.Info("skip orchestration on device config map update for OSDs on PVC")
continue
}
logger.Infof("Running orchestration for namespace %s after device change", cluster.Namespace)
err := cluster.createInstance(c.rookImage, cluster.Info.CephVersion)
if err != nil {