Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit 809c271

Browse files
committed
log error of malformed cluster configuration
1 parent c05ce64 commit 809c271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/kubefedcluster/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (cc *ClusterController) addToClusterSet(obj *fedv1b1.KubeFedCluster) {
185185
restClient, err := NewClusterClientSet(obj, cc.client, cc.fedNamespace, cc.clusterHealthCheckConfig.Timeout)
186186
if err != nil || restClient.kubeClient == nil {
187187
cc.RecordError(obj, "MalformedClusterConfig", errors.Wrap(err, "The configuration for this cluster may be malformed"))
188-
klog.Errorf("The configuration for cluster %s may be malformed", obj.Name)
188+
klog.Errorf("The configuration for cluster %q may be malformed: %v", obj.Name, err)
189189
}
190190
cc.clusterDataMap[obj.Name] = &ClusterData{clusterKubeClient: restClient, cachedObj: obj.DeepCopy()}
191191
}

0 commit comments

Comments
 (0)