kiali: [Kiali 1.59.1] Error fetching Istiod resource threholds on Web UI
We just upgraded Istio from 1.13.2 to 1.16.0 on AWS EKS(v1.23) cluster, and Kiali was upgraded to 1.59.1 also.
When I port-forward Kiali to local (MacOS Ventura 13.1), and access it from Chrome browser,
we got several warnings and one error Error fetching Istiod resource threholds as below,
does anyone see the similar issue? And any clue to resolve it?

About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 22 (10 by maintainers)
@jshaughn @nrfox I was waiting for some responses in this issue to start doing something, because some of the fields you indicated as optionals are always filled when Kiali starts (from the configmap or defaults in the code), so I wanted to check some config from the user.
The offending line that was recently shared is a new one, and clearly it is something to proctect.
I apology myself for the delay @fl64 and thanks @nrfox for taking care of this during my holidays.
@nrfox , +1, I had identified those lines up in a previous comment in January, not sure why they have not been protected. Let’s get that done for v1.66.
Looking at the offending line(s) from the stacktrace: https://github.com/kiali/kiali/blob/885b0400273e44df529f3b2dc5f6c5d576cfa979/business/mesh.go#L596-L597
My guess is that
.Memory()and.Cpu()both return nil when resource requirements are not set for istiod which causes a panic when.AsApproximateFloat64()is called on a nil pointer. It’s valid for resource requirements to not be set on the deployment so Kiali should check for this.