// Converter returns the api.Scheme for the API version to test against, as set by the // KUBE_API_VERSION env var. func Converter() runtime.ObjectConvertor { interfaces, err := latest.InterfacesFor(Version()) if err != nil { panic(err) } return interfaces.ObjectConvertor }
// MetadataAccessor returns the MetadataAccessor for the API version to test against, // as set by the KUBE_API_VERSION env var. func MetadataAccessor() meta.MetadataAccessor { interfaces, err := latest.InterfacesFor(Version()) if err != nil { panic(err) } return interfaces.MetadataAccessor }
// Codec returns the codec for the API version to test against, as set by the // KUBE_API_VERSION env var. func Codec() runtime.Codec { interfaces, err := latest.InterfacesFor(Version()) if err != nil { panic(err) } return interfaces.Codec }