-
Notifications
You must be signed in to change notification settings - Fork 588
/
errors.go
21 lines (19 loc) · 1.21 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package admission
const (
ErrTextConsumerCredentialSecretNotFound = "consumer referenced non-existent credentials secret"
ErrTextConsumerCredentialValidationFailed = "consumer credential failed validation"
ErrTextConsumerExists = "consumer already exists"
ErrTextConsumerUnretrievable = "failed to fetch consumer from kong"
ErrTextConsumerUsernameEmpty = "username cannot be empty"
ErrTextFailedToRetrieveSecret = "could not retrieve secrets from the kubernets API" //nolint:gosec
ErrTextPluginConfigInvalid = "could not parse plugin configuration"
ErrTextPluginConfigValidationFailed = "unable to validate plugin schema"
ErrTextPluginConfigViolatesSchema = "plugin failed schema validation: %s"
ErrTextPluginNameEmpty = "plugin name cannot be empty"
ErrTextPluginSecretConfigUnretrievable = "could not load secret plugin configuration"
ErrTextPluginUsesBothConfigTypes = "plugin cannot use both Config and ConfigFrom"
)
const (
ErrTextCantRetrieveGatewayClass = "gatewayclass for this gateway could not be retrieved"
ErrTextInvalidGatewayConfiguration = "gateway metadata and/or spec are invalid"
)