Skip to content

Commit d3700b8

Browse files
author
“hemalathagajendran”
committed
Removed commented lines
Signed-off-by: “hemalathagajendran” <“[email protected]”>
1 parent 98abeb9 commit d3700b8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

operator/controllers/csiscaleoperator_controller.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2141,12 +2141,9 @@ func ValidateCRParams(ctx context.Context, instance *csiscaleoperator.CSIScaleOp
21412141
logger.Error(fmt.Errorf("mandatory parameter 'guiHost' is not specified for cluster %v", cluster.Id), "")
21422142
}
21432143

2144-
logger.Info(fmt.Sprintf("instance.Spec:[%+v], instance.Spec.LocalScaleCluster:%s", instance.Spec, instance.Spec.LocalScaleCluster))
21452144
if instance.Spec.LocalScaleCluster != "" && instance.Spec.LocalScaleCluster == cluster.Id {
2146-
logger.Info(fmt.Sprintf("Inside localScale condition, instance.Spec.LocalScaleCluster:%s, cluster.Id: %s", instance.Spec.LocalScaleCluster, cluster.Id))
21472145
primaryClusterFound = true
21482146
} else if cluster.Primary != nil && *cluster.Primary != (csiv1.CSIFilesystem{}) {
2149-
logger.Info(fmt.Sprintf("Inside cluster primary, cluster.Id: %s", cluster.Id))
21502147
if primaryClusterFound {
21512148
issueFound = true
21522149
logger.Error(fmt.Errorf("more than one primary clusters specified"), "")
@@ -2168,16 +2165,10 @@ func ValidateCRParams(ctx context.Context, instance *csiscaleoperator.CSIScaleOp
21682165
}
21692166
}
21702167

2171-
logger.Info(fmt.Sprintf("primaryClusterFound:%t, issueFound:%t", primaryClusterFound, issueFound))
21722168
if !primaryClusterFound {
21732169
issueFound = true
21742170
logger.Error(fmt.Errorf("no primary clusters specified"), "")
21752171
}
2176-
//_, nonPrimaryClusterExists := nonPrimaryClusters[remoteClusterID]
2177-
//if remoteClusterID != "" && !nonPrimaryClusterExists {
2178-
// issueFound = true
2179-
// logger.Error(fmt.Errorf("remote cluster specified for primary filesystem: %s, but no entry found for it in driver manifest", remoteClusterID), "")
2180-
//}
21812172

21822173
if issueFound {
21832174
message := "one or more issues found while validating driver manifest, check operator logs for details"

0 commit comments

Comments
 (0)