Documentation ¶
Overview ¶
Package validator implements utility routines related to Kubernetes' admission webhooks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// HealthAPIPath is the API path for health check
HealthAPIPath = "/healthz"
)
Functions ¶
func MultiClusterServiceValidator ¶
func MultiClusterServiceValidator(req *admissionv1.AdmissionRequest) (*admissionv1.AdmissionResponse, error)
MultiClusterServiceValidator validates the MultiClusterService CRD.
func NewValidatingWebhook ¶
func NewValidatingWebhook(webhookConfigName string, port int, certificater certificate.Certificater, kubeClient kubernetes.Interface, stop <-chan struct{}) 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.