tenant

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 88

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APINotAvailableError = &microerror.Error{
	Kind: "APINotAvailableError",
}

APINotAvailableError is returned when the tenant Kubernetes API is not available.

View Source
var (
	APINotAvailablePatterns = []*regexp.Regexp{

		regexp.MustCompile(`dial tcp: lookup .* on .*:53: (no such host|server misbehaving)`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..* dial tcp: lookup .*: no such host`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..*/api/v1/nodes.* (unexpected )?EOF`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..*/api/v1/namespaces/*/.* (unexpected )?EOF`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..*/api\?timeout.*: (EOF|context deadline exceeded)`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..*/api/v1/nodes.* net/http: (TLS handshake timeout|request canceled).*?`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..* dial tcp .* i/o timeout`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..* .* \(Client.Timeout exceeded while awaiting headers\)`),

		regexp.MustCompile(`Get|Patch|Post "?https://api\..*: x509: (certificate is valid for ingress.local, not api\..*|certificate has expired or is not yet valid.*|certificate signed by unknown authority \(possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate.*?\))`),

		regexp.MustCompile(`an error on the server \(.*\) has prevented the request from succeeding`),
	}
)

Functions

func IsAPINotAvailable

func IsAPINotAvailable(err error) bool

IsAPINotAvailable asserts APINotAvailableError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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