import "istio.io/istio/pkg/webhooks/validation/server"
var ( // GroupTag holds the resource group for the context. GroupTag = monitoring.MustCreateLabel(group) // VersionTag holds the resource version for the context. VersionTag = monitoring.MustCreateLabel(version) // ResourceTag holds the resource name for the context. ResourceTag = monitoring.MustCreateLabel(resourceTag) // ReasonTag holds the error reason for the context. ReasonTag = monitoring.MustCreateLabel(reason) // StatusTag holds the error code for the context. StatusTag = monitoring.MustCreateLabel(status) )
type Options struct { // Schemas provides a description of all configuration resources. Schemas collection.Schemas // DomainSuffix is the DNS domain suffix for Pilot CRD resources, // e.g. cluster.local. DomainSuffix string // Port where the webhook is served. the number should be greater than 1024 for non-root // user, because non-root user cannot bind port number less than 1024 // Mainly used for testing. Webhook server is started by Istiod. Port uint // Use an existing mux instead of creating our own. Mux *http.ServeMux }
Options contains the configuration for the Istio Pilot validation admission controller.
DefaultArgs allocates an Options struct initialized with Webhook's default configuration.
String produces a stringified version of the arguments for debugging.
Validate tests if the Options has valid params.
type Webhook struct {
// contains filtered or unexported fields
}
Webhook implements the validating admission webhook for validating Istio configuration.
New creates a new instance of the admission webhook server.
Run implements the webhook server
Stop the server
Package server imports 21 packages (graph) and is imported by 2 packages. Updated 2020-12-24. Refresh now. Tools for package owners.