import "sigs.k8s.io/cluster-api/util/conversion"
const (
DataAnnotation = "cluster.x-k8s.io/conversion-data"
)
func ConvertReferenceAPIContract(ctx context.Context, c client.Client, restConfig *rest.Config, ref *corev1.ObjectReference) error
ConvertReferenceAPIContract takes a client and object reference, queries the API Server for the Custom Resource Definition and looks which one is the stored version available.
The object passed as input is modified in place if an updated compatible version is found.
func FuzzTestFunc(scheme *runtime.Scheme, hub conversion.Hub, dst conversion.Convertible, funcs ...fuzzer.FuzzerFuncs) 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.
GetFuzzer returns a new fuzzer to be used for testing.
MarshalData stores the source object as json data in the destination object annotations map. It ignores the metadata of the source object.
UnmarshalData tries to retrieve the data from the annotation and unmarshals it into the object passed as input.
Package conversion imports 23 packages (graph) and is imported by 13 packages. Updated 2020-12-14. Refresh now. Tools for package owners.