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" // ControlPlaneValidatingWebhookName is the name of the validating webhook for control plane resource. ControlPlaneValidatingWebhookName = "osm-control-plane-validator.k8s.io" // ValidatorWebhookSvc is the name of the validator service. ValidatorWebhookSvc = "osm-validator" )
Variables ¶
This section is empty.
Functions ¶
func DetectIngressBackendConflicts ¶
func DetectIngressBackendConflicts(x policyv1alpha1.IngressBackend, y policyv1alpha1.IngressBackend) []error
DetectIngressBackendConflicts detects conflicts between the given IngressBackend resources
func NewValidatingWebhook ¶
func NewValidatingWebhook(ctx context.Context, webhookConfigName, osmNamespace, osmVersion, meshName string, enableReconciler, validateTrafficTarget bool, certManager *certificate.Manager, kubeClient kubernetes.Interface, computeClient compute.Interface) 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.