Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Maximum IP address prefix lengths MaxIPv4PrefixLength int = 32 MaxIPv6PrefixLength int = 128 )
View Source
const AllowedReason string = "allowed to be admitted"
Webhook response reasons
Variables ¶
View Source
var ( // Builders contain admission webhook builders Builders = map[string]*builder.WebhookBuilder{} // HandlerMap contains admission webhook handlers HandlerMap = map[string][]admission.Handler{} )
Functions ¶
func IsValidPrefix ¶
Determines if the a prefix length agrees with the address family of the specified address
Types ¶
type PlatformNetworkCreateUpdateHandler ¶
PlatformNetworkCreateUpdateHandler handles PlatformNetwork
func (*PlatformNetworkCreateUpdateHandler) Handle ¶
func (h *PlatformNetworkCreateUpdateHandler) Handle(ctx context.Context, req types.Request) types.Response
Handle handles admission requests.
func (*PlatformNetworkCreateUpdateHandler) InjectDecoder ¶
func (h *PlatformNetworkCreateUpdateHandler) InjectDecoder(d types.Decoder) error
InjectDecoder injects the decoder into the PlatformNetworkCreateUpdateHandler
Click to show internal directories.
Click to hide internal directories.