Unverified Commit df86494e authored by Dan Ramich's avatar Dan Ramich Committed by GitHub
Browse files

Merge pull request #31574 from dramich/updateagentlog

Update error message to be more explicit
parents 5a5c039d 3562bd13
Showing with 1 addition and 1 deletion
+1 -1
......@@ -70,7 +70,7 @@ func (h *HealthSyncer) getComponentStatus(cluster *v3.Cluster) error {
// As of k8s v1.14, kubeapi returns a successful ComponentStatuses response even if etcd is not available.
// To work around this, now we try to get a namespace from the API, even if not found, it means the API is up.
if _, err := h.k8s.CoreV1().Namespaces().Get(ctx, "kube-system", metav1.GetOptions{}); err != nil && !apierrors.IsNotFound(err) {
return condition.Error("ComponentStatsFetchingFailure", errors.Wrap(err, "Failed to communicate with API server"))
return condition.Error("ComponentStatsFetchingFailure", errors.Wrap(err, "Failed to communicate with API server during namespace check"))
}
cses, err := h.componentStatuses.List(metav1.ListOptions{})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment