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 ¶
- func ConvertFrom(src, dst runtime.Object) error
- func ConvertTo(src, dst runtime.Object) error
- func Convert_AWSEndpointService_v1alpha1_to_v1beta1(src *hyperv1alpha1.AWSEndpointService, dst *hyperv1beta1.AWSEndpointService) error
- func Convert_AWSEndpointService_v1beta1_to_v1alpha1(src *hyperv1beta1.AWSEndpointService, dst *hyperv1alpha1.AWSEndpointService) error
- func Convert_HostedCluster_v1alpha1_to_v1beta1(src *hyperv1alpha1.HostedCluster, dst *hyperv1beta1.HostedCluster) error
- func Convert_HostedCluster_v1beta1_to_v1alpha1(src *hyperv1beta1.HostedCluster, dst *hyperv1alpha1.HostedCluster) error
- func Convert_HostedControlPlane_v1alpha1_to_v1beta1(src *hyperv1alpha1.HostedControlPlane, dst *hyperv1beta1.HostedControlPlane) error
- func Convert_HostedControlPlane_v1beta1_to_v1alpha1(src *hyperv1beta1.HostedControlPlane, dst *hyperv1alpha1.HostedControlPlane) error
- func Convert_NodePool_v1alpha1_to_v1beta1(src *hyperv1alpha1.NodePool, dst *hyperv1beta1.NodePool) error
- func Convert_NodePool_v1beta1_to_v1alpha1(src *hyperv1beta1.NodePool, dst *hyperv1alpha1.NodePool) error
- func FuzzTestFunc(input FuzzTestFuncInput) func(*testing.T)
- func GetFuzzer(scheme *runtime.Scheme, funcs ...fuzzer.FuzzerFuncs) *fuzz.Fuzzer
- func NewWebhookHandler(scheme *runtime.Scheme) http.Handler
- func ParseGlobalConfig(cfg *hyperv1alpha1.ClusterConfiguration) (globalConfig, error)
- type FuzzTestFuncInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFrom ¶
ConvertFrom (v1beta1) -> (v1alpha1)
func Convert_AWSEndpointService_v1alpha1_to_v1beta1 ¶
func Convert_AWSEndpointService_v1alpha1_to_v1beta1(src *hyperv1alpha1.AWSEndpointService, dst *hyperv1beta1.AWSEndpointService) error
func Convert_AWSEndpointService_v1beta1_to_v1alpha1 ¶
func Convert_AWSEndpointService_v1beta1_to_v1alpha1(src *hyperv1beta1.AWSEndpointService, dst *hyperv1alpha1.AWSEndpointService) error
func Convert_HostedCluster_v1alpha1_to_v1beta1 ¶
func Convert_HostedCluster_v1alpha1_to_v1beta1(src *hyperv1alpha1.HostedCluster, dst *hyperv1beta1.HostedCluster) error
HostedCluster conversion
func Convert_HostedCluster_v1beta1_to_v1alpha1 ¶
func Convert_HostedCluster_v1beta1_to_v1alpha1(src *hyperv1beta1.HostedCluster, dst *hyperv1alpha1.HostedCluster) error
func Convert_HostedControlPlane_v1alpha1_to_v1beta1 ¶
func Convert_HostedControlPlane_v1alpha1_to_v1beta1(src *hyperv1alpha1.HostedControlPlane, dst *hyperv1beta1.HostedControlPlane) error
func Convert_HostedControlPlane_v1beta1_to_v1alpha1 ¶
func Convert_HostedControlPlane_v1beta1_to_v1alpha1(src *hyperv1beta1.HostedControlPlane, dst *hyperv1alpha1.HostedControlPlane) error
func Convert_NodePool_v1alpha1_to_v1beta1 ¶
func Convert_NodePool_v1alpha1_to_v1beta1(src *hyperv1alpha1.NodePool, dst *hyperv1beta1.NodePool) error
func Convert_NodePool_v1beta1_to_v1alpha1 ¶
func Convert_NodePool_v1beta1_to_v1alpha1(src *hyperv1beta1.NodePool, dst *hyperv1alpha1.NodePool) error
func FuzzTestFunc ¶
func FuzzTestFunc(input FuzzTestFuncInput) func(*testing.T)
FuzzTestFunc returns a new testing function to be used in tests to make sure conversions between the Hub version of an object and an older version aren't lossy.
func ParseGlobalConfig ¶
func ParseGlobalConfig(cfg *hyperv1alpha1.ClusterConfiguration) (globalConfig, error)
Types ¶
type FuzzTestFuncInput ¶
type FuzzTestFuncInput struct { Scheme *runtime.Scheme Hub runtime.Object HubAfterMutation func(runtime.Object) HubAfterFuzz func(runtime.Object) Spoke runtime.Object SpokeAfterMutation func(runtime.Object) SkipSpokeAnnotationCleanup bool FuzzerFuncs []fuzzer.FuzzerFuncs }
FuzzTestFuncInput contains input parameters for the FuzzTestFunc function.
Click to show internal directories.
Click to hide internal directories.