Skip to content

Commit 15bae40

Browse files
committed
fix the data
Signed-off-by: Ryan Zhang <[email protected]>
1 parent 4c9a736 commit 15bae40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/controllers/clusterinventory/clusterprofile/controller.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ func (r *Reconciler) fillInClusterStatus(mc *clusterv1beta1.MemberCluster, cp *c
193193
},
194194
}
195195
}
196+
certificateAuthorityData, exists := mc.Status.Properties[propertyprovider.ClusterCertificateAuthorityProperty]
197+
if exists {
198+
klog.V(3).InfoS("Get Kubernetes cluster certificate authority data from member cluster status", "clusterProfile", klog.KObj(cp))
199+
cp.Status.AccessProviders[0].Cluster.CertificateAuthorityData = []byte(certificateAuthorityData.Value)
200+
}
196201
}
197202

198203
// syncClusterProfileCondition syncs the ClusterProfile object's condition based on the MemberCluster object's condition.

0 commit comments

Comments
 (0)