This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
/
errors.go
47 lines (32 loc) · 2.78 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package envoy
import "errors"
var (
// ErrEnvoyListenerMissing is an error returned when an Envoy does not have a required listener.
ErrEnvoyListenerMissing = errors.New("envoy listener missing")
// ErrEnvoyFilterChainMissing is an error returned when an Envoy does not have a required filter chain.
ErrEnvoyFilterChainMissing = errors.New("envoy listener filter chain missing")
// ErrEnvoyActiveStateListenerMissing is an error returned when an Envoy does not have a required active state listener.
ErrEnvoyActiveStateListenerMissing = errors.New("envoy active state listener missing")
// ErrEnvoyConfigEmpty is an error returned when an Envoy config is completely missing.
ErrEnvoyConfigEmpty = errors.New("envoy config is empty")
// ErrOSMControllerVersionUnrecognized is an error returned when the supplied OSM Controller version is not recognized.
ErrOSMControllerVersionUnrecognized = errors.New("osm controller version not recognized")
// ErrIncorrectlyInitializedConfigGetter is an error returned when the ConfigGetter struct is not correctly initialized.
ErrIncorrectlyInitializedConfigGetter = errors.New("incorrectly initialized config getter")
// ErrNoDestinationEndpoints is an error returned when an Envoy has no destination endpoints.
ErrNoDestinationEndpoints = errors.New("no destination endpoints")
// ErrUnmarshalingClusterLoadAssigment is an error returned when the unmarshaling of the Envoy ClusterLoadAssignment struct fails.
ErrUnmarshalingClusterLoadAssigment = errors.New("error unmarshaling envoy cluster load assigment")
// ErrUnmarshalingListener is an error returned when the unmarshaling of the Envoy Listener struct fails.
ErrUnmarshalingListener = errors.New("error unmarshaling envoy listener")
// ErrEndpointNotFound is an error returned when a specific endpoint is not found in Envoy EDS config.
ErrEndpointNotFound = errors.New("endpoint not found")
// ErrUnmarshalingDynamicRouteConfig is an error returned when the unmarshaling of the dynamic RouteConfiguration struct fails.
ErrUnmarshalingDynamicRouteConfig = errors.New("error unmarshaling dynamic route configuration")
// ErrNoDynamicRouteConfigDomains is an error returned when an Envoy has no dynamic route config domains.
ErrNoDynamicRouteConfigDomains = errors.New("no dynamic route config domains")
// ErrDynamicRouteConfigDomainNotFound is an error returned when a specific dynamic route config domain is not found.
ErrDynamicRouteConfigDomainNotFound = errors.New("dynamic route config domain not found")
// ErrDynamicWarmingSecretsConfigDumpNotEmpty is an error returned when the pod's envoy is possibly experiencing dynamic warming issues.
ErrDynamicWarmingSecretsConfigDumpNotEmpty = errors.New("possible dynamic warming issue due to non-empty dynamic warming secrets in envoy's secrets config dump")
)