util

package
v1.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 4

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

func IsBadDestTelemetry(svc, svcName, wl string) bool

IsBadDestTelemetry tests for known issues in generated telemetry given indicative label values.

  1. 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.
  2. no more conditions known

func IsBadSourceTelemetry added in v1.15.2

func IsBadSourceTelemetry(ns, wl, app string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL