From 266207570abd2a80390bc73459f6d6c5ca8365db Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Tue, 16 Aug 2016 21:24:45 -0700 Subject: [PATCH] Add warning comment --- pkg/api/testapi/testapi.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/api/testapi/testapi.go b/pkg/api/testapi/testapi.go index 0ad8b08c678..d5049fb0060 100644 --- a/pkg/api/testapi/testapi.go +++ b/pkg/api/testapi/testapi.go @@ -15,6 +15,12 @@ limitations under the License. */ // Package testapi provides a helper for retrieving the KUBE_TEST_API environment variable. +// +// TODO(lavalamp): this package is a huge disaster at the moment. I intend to +// refactor. All code currently using this package should change: +// 1. Declare your own registered.APIGroupRegistrationManager in your own test code. +// 2. Import the relevant install packages. +// 3. Register the types you need, from the announced.APIGroupAnnouncementManager. package testapi import (