Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestinationValidator ¶
type DestinationValidator struct {
// contains filtered or unexported fields
}
DestinationValidator validates the destination
func (*DestinationValidator) Handle ¶
func (v *DestinationValidator) Handle(ctx context.Context, req admission.Request) admission.Response
DestinationValidator makes sure that endpoint specs conform with the layer number set (e.g., a layer 3 endpoint can not have a port set)
func (*DestinationValidator) InjectClient ¶
func (v *DestinationValidator) InjectClient(c client.Client) error
InjectClient injects the client.
func (*DestinationValidator) InjectDecoder ¶
func (v *DestinationValidator) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder.
type LayerValidator ¶
type LayerValidator struct {
// contains filtered or unexported fields
}
LayerValidator validates Pods
func (*LayerValidator) Handle ¶
LayerValidator makes sure that endpoint specs conform with the layer number set (e.g., a layer 3 endpoint can not have a port set)
func (*LayerValidator) InjectClient ¶
func (v *LayerValidator) InjectClient(c client.Client) error
InjectClient injects the client.
func (*LayerValidator) InjectDecoder ¶
func (v *LayerValidator) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects the decoder.
Click to show internal directories.
Click to hide internal directories.