Documentation ¶
Overview ¶
Package conversion provides implementation for CRD conversion webhook that implements handler for version conversion requests for types that are convertible.
See pkg/conversion for interface definitions required to ensure an API Type is convertible.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder knows how to decode the contents of a CRD version conversion request into a concrete object. TODO(droot): consider reusing decoder from admission pkg for this.
func NewDecoder ¶
NewDecoder creates a Decoder given the runtime.Scheme
type PartialImplementationError ¶
type PartialImplementationError struct {
// contains filtered or unexported fields
}
PartialImplementationError represents an error due to partial conversion implementation such as hub without spokes, multiple hubs or spokes without hub.
func (PartialImplementationError) Error ¶
func (e PartialImplementationError) Error() string
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
Webhook implements a CRD conversion webhook HTTP handler.
func (*Webhook) InjectScheme ¶
InjectScheme injects a scheme into the webhook, in order to construct a Decoder.