@@ -273,7 +273,7 @@ func (r *clusterReconciler) reconcileNormal(ctx context.Context, clusterCtx *cap
273273
274274 // Reconcile vCenter availability.
275275 if err := r .reconcileIdentitySecret (ctx , clusterCtx ); err != nil {
276- deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .VCenterAvailableCondition , infrav1 .VCenterUnreachableReason , clusterv1beta1 .ConditionSeverityError , err . Error () )
276+ deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .VCenterAvailableCondition , infrav1 .VCenterUnreachableReason , clusterv1beta1 .ConditionSeverityError , "%v" , err )
277277 deprecatedv1beta2conditions .Set (clusterCtx .VSphereCluster , metav1.Condition {
278278 Type : infrav1 .VSphereClusterVCenterAvailableV1Beta2Condition ,
279279 Status : metav1 .ConditionFalse ,
@@ -285,7 +285,7 @@ func (r *clusterReconciler) reconcileNormal(ctx context.Context, clusterCtx *cap
285285
286286 vcenterSession , err := r .reconcileVCenterConnectivity (ctx , clusterCtx )
287287 if err != nil {
288- deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .VCenterAvailableCondition , infrav1 .VCenterUnreachableReason , clusterv1beta1 .ConditionSeverityError , err . Error () )
288+ deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .VCenterAvailableCondition , infrav1 .VCenterUnreachableReason , clusterv1beta1 .ConditionSeverityError , "%v" , err )
289289 deprecatedv1beta2conditions .Set (clusterCtx .VSphereCluster , metav1.Condition {
290290 Type : infrav1 .VSphereClusterVCenterAvailableV1Beta2Condition ,
291291 Status : metav1 .ConditionFalse ,
@@ -305,7 +305,7 @@ func (r *clusterReconciler) reconcileNormal(ctx context.Context, clusterCtx *cap
305305 // Reconcile cluster modules.
306306 err = r .reconcileVCenterVersion (clusterCtx , vcenterSession )
307307 if err != nil || clusterCtx .VSphereCluster .Status .VCenterVersion == "" {
308- deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .ClusterModulesAvailableCondition , infrav1 .MissingVCenterVersionReason , clusterv1beta1 .ConditionSeverityWarning , err . Error () )
308+ deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .ClusterModulesAvailableCondition , infrav1 .MissingVCenterVersionReason , clusterv1beta1 .ConditionSeverityWarning , "%v" , err )
309309 deprecatedv1beta2conditions .Set (clusterCtx .VSphereCluster , metav1.Condition {
310310 Type : infrav1 .VSphereClusterClusterModulesReadyV1Beta2Condition ,
311311 Status : metav1 .ConditionFalse ,
@@ -317,7 +317,7 @@ func (r *clusterReconciler) reconcileNormal(ctx context.Context, clusterCtx *cap
317317
318318 affinityReconcileResult , err := r .reconcileClusterModules (ctx , clusterCtx )
319319 if err != nil {
320- deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .ClusterModulesAvailableCondition , infrav1 .ClusterModuleSetupFailedReason , clusterv1beta1 .ConditionSeverityWarning , err . Error () )
320+ deprecatedconditions .MarkFalse (clusterCtx .VSphereCluster , infrav1 .ClusterModulesAvailableCondition , infrav1 .ClusterModuleSetupFailedReason , clusterv1beta1 .ConditionSeverityWarning , "%v" , err )
321321 deprecatedv1beta2conditions .Set (clusterCtx .VSphereCluster , metav1.Condition {
322322 Type : infrav1 .VSphereClusterClusterModulesReadyV1Beta2Condition ,
323323 Status : metav1 .ConditionFalse ,
0 commit comments