diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index f22dfef9..a5796489 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -224,7 +224,7 @@ }, { "ImportPath": "k8s.io/client-go", - "Rev": "78e94f51a042" + "Rev": "7b18d6600f6b" }, { "ImportPath": "k8s.io/code-generator", diff --git a/go.mod b/go.mod index f2d756de..4b4ffc8f 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ go 1.12 require ( k8s.io/api v0.0.0-20190515023547-db5a9d1c40eb k8s.io/apimachinery v0.0.0-20190515023456-b74e4c97951f - k8s.io/client-go v0.0.0-20190515023709-78e94f51a042 + k8s.io/client-go v0.0.0-20190515063710-7b18d6600f6b k8s.io/code-generator v0.0.0-20190511023357-639c964206c2 k8s.io/klog v0.3.0 ) @@ -18,7 +18,7 @@ replace ( golang.org/x/tools => golang.org/x/tools v0.0.0-20190313210603-aa82965741a9 k8s.io/api => k8s.io/api v0.0.0-20190515023547-db5a9d1c40eb k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20190515023456-b74e4c97951f - k8s.io/client-go => k8s.io/client-go v0.0.0-20190515023709-78e94f51a042 + k8s.io/client-go => k8s.io/client-go v0.0.0-20190515063710-7b18d6600f6b k8s.io/code-generator => k8s.io/code-generator v0.0.0-20190511023357-639c964206c2 ) diff --git a/go.sum b/go.sum index b91bd677..ffa72d9e 100644 --- a/go.sum +++ b/go.sum @@ -96,7 +96,7 @@ gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= k8s.io/api v0.0.0-20190515023547-db5a9d1c40eb/go.mod h1:fbdFiGtx7GQ3+vkBAYto3QsSImiYIJdpH3YfaclST/U= k8s.io/apimachinery v0.0.0-20190515023456-b74e4c97951f/go.mod h1:Ew3b/24/JSgJdn4RsnrLskv3LvMZDlZ1Fl1xopsJftY= -k8s.io/client-go v0.0.0-20190515023709-78e94f51a042/go.mod h1:Ucfy225uJpWBtWGDwTtqUZmmgR/AzYM0vge2iB/bTQ4= +k8s.io/client-go v0.0.0-20190515063710-7b18d6600f6b/go.mod h1:Ucfy225uJpWBtWGDwTtqUZmmgR/AzYM0vge2iB/bTQ4= k8s.io/code-generator v0.0.0-20190511023357-639c964206c2/go.mod h1:YMQ7Lt97nW/I6nHACDccgS/sPAyrHQNans96RwPaSb8= k8s.io/gengo v0.0.0-20190116091435-f8a0810f38af h1:SwjZbO0u5ZuaV6TRMWOGB40iaycX8sbdMQHtjNZ19dk= k8s.io/gengo v0.0.0-20190116091435-f8a0810f38af/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= diff --git a/pkg/apis/samplecontroller/register.go b/pkg/apis/samplecontroller/register.go index 394f7967..fd5a7888 100644 --- a/pkg/apis/samplecontroller/register.go +++ b/pkg/apis/samplecontroller/register.go @@ -16,6 +16,7 @@ limitations under the License. package samplecontroller +// GroupName is the group name used in this package const ( GroupName = "samplecontroller.k8s.io" ) diff --git a/pkg/apis/samplecontroller/v1alpha1/register.go b/pkg/apis/samplecontroller/v1alpha1/register.go index df5695eb..e8e0a28e 100644 --- a/pkg/apis/samplecontroller/v1alpha1/register.go +++ b/pkg/apis/samplecontroller/v1alpha1/register.go @@ -38,8 +38,10 @@ func Resource(resource string) schema.GroupResource { } var ( + // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) - AddToScheme = SchemeBuilder.AddToScheme + // AddToScheme is a global function that registers this API group & version to a scheme + AddToScheme = SchemeBuilder.AddToScheme ) // Adds the list of known types to Scheme.