Documentation ¶
Index ¶
- Constants
- Variables
- func NewCertificateProvider(certPath, keyPath string, logger *log.Logger, ctx context.Context, ...) (*certificateProvider, error)
- func NewGatewayValidatingWebhook(cfg WebhookConfig) (*http.Server, error)
- func NewGatewayValidationHandler(ctx context.Context, validator validation.Validator, watchNamespaces []string, ...) *gatewayValidationWebhook
- type AdmissionRequestWithProxies
- type AdmissionResponseWithProxies
- type AdmissionReviewWithProxies
- type WebhookConfig
Constants ¶
View Source
const ( ValidationPath = "/validation" SkipValidationKey = "gateway.solo.io/skip_validation" SkipValidationValue = "true" )
View Source
const ( ApplicationJson = "application/json" ApplicationYaml = "application/x-yaml" )
Variables ¶
View Source
var ( UnmarshalErr = errors.New(unmarshalErrMsg) WrappedUnmarshalErr = func(err error) error { return errors.Wrapf(err, unmarshalErrMsg) } ListGVK = schema.GroupVersionKind{ Version: "v1", Group: "", Kind: "List", } )
Functions ¶
func NewCertificateProvider ¶ added in v1.8.0
func NewGatewayValidatingWebhook ¶
func NewGatewayValidatingWebhook(cfg WebhookConfig) (*http.Server, error)
Types ¶
type AdmissionRequestWithProxies ¶ added in v1.5.2
type AdmissionRequestWithProxies struct { v1beta1.AdmissionReview ReturnProxies bool `json:"returnProxies,omitempty"` }
type AdmissionResponseWithProxies ¶ added in v1.4.7
type AdmissionResponseWithProxies struct { *v1beta1.AdmissionResponse Proxies []*gloov1.Proxy `json:"proxies,omitempty"` }
Validation webhook works properly even if extra fields are provided in the response
type AdmissionReviewWithProxies ¶ added in v1.4.7
type AdmissionReviewWithProxies struct { AdmissionRequestWithProxies AdmissionResponseWithProxies }
type WebhookConfig ¶
type WebhookConfig struct {
// contains filtered or unexported fields
}
func NewWebhookConfig ¶
func NewWebhookConfig(ctx context.Context, validator validation.Validator, watchNamespaces []string, port int, serverCertPath, serverKeyPath string, alwaysAccept, readGatewaysFromAllNamespaces bool, webhookNamespace string) WebhookConfig
Click to show internal directories.
Click to hide internal directories.