Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleDestination ¶ added in v1.18.3
func HandleDestination(sourceWlNs, sourceWl, destSvcNs, destSvc, destSvcName, destWlNs, destWl, destApp, destVer string) (string, string, string, string, string, string, bool)
HandleDestination modifies the destination information, when necessary, for various corner cases. It should be called after source validation and before destination processing. Returns destSvcNs, destSvcName, destWlNs, destWl, destApp, destVersion, isupdated
func HandleResponseCode ¶ added in v1.12.1
func HandleResponseCode(protocol, httpResponseCode string, grpcResponseStatusOk bool, grpcResponseStatus string) string
HandleResponseCode returns either the HTTP response code or the GRPC response status. GRPC response status was added upstream in Istio 1.5 and downstream OSSM 1.1. We support it here in a backward compatible way. When protocol is not GRPC, or if the version running does not supply the GRPC status, just return the HTTP code. Also return the HTTP code In the rare case that protocol is GRPC but the HTTP transport fails. (I have never seen this happen). Otherwise, return the GRPC status.
func IsBadDestTelemetry ¶ added in v1.15.2
IsBadDestTelemetry tests for known issues in generated telemetry given indicative label values.
- During pod lifecycle changes incomplete telemetry may be generated that results in destSvc == destSvcName and no dest workload, where destSvc[Name] is in the form of an IP address.
- no more conditions known
func IsBadSourceTelemetry ¶ added in v1.15.2
IsBadSourceTelemetry tests for known issues in generated telemetry given indicative label values. 1) source namespace is provided with neither workload nor app 2) no more conditions known
Types ¶
This section is empty.