validator

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL