Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var APINotAvailableError = µerror.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 ¶
IsAPINotAvailable asserts APINotAvailableError.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.