Documentation
¶
Overview ¶
Package versioned provides tools for making sure the objects sent to a webhook are in a version the webhook understands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
Attributes is a wrapper around the original admission attributes. It allows override the internal objects with the versioned ones.
func (Attributes) GetObject ¶
func (v Attributes) GetObject() runtime.Object
GetObject overrides the original GetObjects() and it returns the versioned object.
func (Attributes) GetOldObject ¶
func (v Attributes) GetOldObject() runtime.Object
GetOldObject overrides the original GetOldObjects() and it returns the versioned oldObject.
type Convertor ¶
Convertor converts objects to the desired version.
func (Convertor) Convert ¶
Convert converts the in object to the out object and returns an error if the conversion fails.
func (Convertor) ConvertToGVK ¶
func (c Convertor) ConvertToGVK(obj runtime.Object, gvk schema.GroupVersionKind) (runtime.Object, error)
ConvertToGVK converts object to the desired gvk.
Click to show internal directories.
Click to hide internal directories.