http

package
v0.0.0-...-d424939 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// HealthCheckPath is the name of a path that activator, autoscaler and
	// prober(used by KIngress generally) use for health check.
	HealthCheckPath = "/healthz"
)

Variables

This section is empty.

Functions

func IsPotentialMeshErrorResponse

func IsPotentialMeshErrorResponse(resp *http.Response) bool

IsPotentialMeshErrorResponse returns whether the HTTP response is compatible with having been caused by attempting direct connection when mesh was enabled. For example if we get a HTTP 404 status code it's safe to assume mesh is not enabled even if a probe was otherwise unsuccessful. This is useful to avoid falling back to ClusterIP when we see errors which are unrelated to mesh being enabled.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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