validator

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

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 = "osm-validator.k8s.io"

	// ValidatorWebhookSvc is the name of the validator service.
	ValidatorWebhookSvc = "osm-validator"
)

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, osmNamespace, osmVersion, meshName string, enableReconciler, validateTrafficTarget bool, port int, certManager certificate.Manager, 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