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 ¶
func NewGatewayValidatingWebhook ¶
func NewGatewayValidatingWebhook(cfg WebhookConfig) (*http.Server, error)
Types ¶
type AdmissionRequestWithProxies ¶
type AdmissionRequestWithProxies struct { v1beta1.AdmissionReview ReturnProxies bool `json:"returnProxies,omitempty"` }
type AdmissionResponseWithProxies ¶
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 ¶
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.