func init() {
	if _, found := testapi.Groups[testgroup.SchemeGroupVersion.Group]; found {
		return
	}
	testapi.Groups[testgroup.SchemeGroupVersion.Group] = testapi.NewTestGroup(
		unversioned.GroupVersion{Group: testgroup.SchemeGroupVersion.Group, Version: latest.GroupOrDie(testgroup.SchemeGroupVersion.Group).GroupVersion.Version},
		testgroup.SchemeGroupVersion)
	testHelper = testapi.Groups[testgroup.SchemeGroupVersion.Group]
}
Example #2
0
func init() {
	if _, found := testapi.Groups[testgroup.SchemeGroupVersion.Group]; found {
		return
	}
	testapi.Groups[testgroup.SchemeGroupVersion.Group] = testapi.NewTestGroup(
		registered.GroupOrDie(testgroup.SchemeGroupVersion.Group).GroupVersion,
		testgroup.SchemeGroupVersion)
	testHelper = testapi.Groups[testgroup.SchemeGroupVersion.Group]
}
Example #3
0
func init() {
	if _, found := testapi.Groups[testgroup.SchemeGroupVersion.Group]; found {
		return
	}
	externalGroupVersion := registered.GroupOrDie(testgroup.SchemeGroupVersion.Group).GroupVersion
	testapi.Groups[testgroup.SchemeGroupVersion.Group] = testapi.NewTestGroup(
		externalGroupVersion,
		testgroup.SchemeGroupVersion,
		api.Scheme.KnownTypes(testgroup.SchemeGroupVersion),
		api.Scheme.KnownTypes(externalGroupVersion))
	testHelper = testapi.Groups[testgroup.SchemeGroupVersion.Group]
}