@@ -2141,12 +2141,9 @@ func ValidateCRParams(ctx context.Context, instance *csiscaleoperator.CSIScaleOp
2141
2141
logger .Error (fmt .Errorf ("mandatory parameter 'guiHost' is not specified for cluster %v" , cluster .Id ), "" )
2142
2142
}
2143
2143
2144
- logger .Info (fmt .Sprintf ("instance.Spec:[%+v], instance.Spec.LocalScaleCluster:%s" , instance .Spec , instance .Spec .LocalScaleCluster ))
2145
2144
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 ))
2147
2145
primaryClusterFound = true
2148
2146
} else if cluster .Primary != nil && * cluster .Primary != (csiv1.CSIFilesystem {}) {
2149
- logger .Info (fmt .Sprintf ("Inside cluster primary, cluster.Id: %s" , cluster .Id ))
2150
2147
if primaryClusterFound {
2151
2148
issueFound = true
2152
2149
logger .Error (fmt .Errorf ("more than one primary clusters specified" ), "" )
@@ -2168,16 +2165,10 @@ func ValidateCRParams(ctx context.Context, instance *csiscaleoperator.CSIScaleOp
2168
2165
}
2169
2166
}
2170
2167
2171
- logger .Info (fmt .Sprintf ("primaryClusterFound:%t, issueFound:%t" , primaryClusterFound , issueFound ))
2172
2168
if ! primaryClusterFound {
2173
2169
issueFound = true
2174
2170
logger .Error (fmt .Errorf ("no primary clusters specified" ), "" )
2175
2171
}
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
- //}
2181
2172
2182
2173
if issueFound {
2183
2174
message := "one or more issues found while validating driver manifest, check operator logs for details"
0 commit comments