cosi: change the default deployment strategy to never
While experimental, the cosi driver should not be enabled by
default.
Signed-off-by: travisn <tnielsen@redhat.com>
(cherry picked from commit 990cb40043)
This commit is contained in:
1 parent
d5b6405bdb
commit
6e39f35741
1 file changed
+5
-1
@@ -125,10 +125,14 @@ func (r *ReconcileCephCOSIDriver) reconcile(request reconcile.Request) (reconcil
|
||||
return reconcile.Result{}, *cephCOSIDriver, errors.Wrapf(err, "failed to get Ceph COSI Driver %s", request.NamespacedName)
|
||||
}
|
||||
|
||||
cosiDeploymentStrategy := cephv1.COSIDeploymentStrategyAuto
|
||||
// While in experimental mode, the COSI driver is not enabled by default
|
||||
cosiDeploymentStrategy := cephv1.COSIDeploymentStrategyNever
|
||||
|
||||
// Get the setting from the CephCOSIDriver CR if exists
|
||||
if !reflect.DeepEqual(cephCOSIDriver.Spec, cephv1.CephCOSIDriverSpec{}) && cephCOSIDriver.Spec.DeploymentStrategy != "" {
|
||||
cosiDeploymentStrategy = cephCOSIDriver.Spec.DeploymentStrategy
|
||||
}
|
||||
|
||||
if cosiDeploymentStrategy == cephv1.COSIDeploymentStrategyNever {
|
||||
logger.Info("Ceph COSI Driver is disabled, delete if exists")
|
||||
cephCOSIDriverDeployment := &appsv1.Deployment{}
|
||||
|
||||
Reference in new issue
Block a user