Documentation ¶
Overview ¶
Package validator implements utility routines related to Kubernetes' admission webhooks.
Index ¶
Constants ¶
View Source
const ( // ValidatingWebhookName is the name of the validating webhook. ValidatingWebhookName = "fsm-validator.k8s.io" // ValidatorWebhookSvc is the name of the validator service. ValidatorWebhookSvc = "fsm-validator" )
Variables ¶
This section is empty.
Functions ¶
func NewValidatingWebhook ¶
func NewValidatingWebhook(ctx context.Context, cfg *configurator.Client, webhookConfigName, fsmNamespace, fsmVersion, meshName string, enableReconciler, validateTrafficTarget bool, certManager *certificate.Manager, kubeClient kubernetes.Interface, kubeController k8s.Controller, policyClient policy.Controller) error
NewValidatingWebhook returns a validatingWebhookServer with the defaultValidators that were previously registered.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.