diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 64af1608..05c55f82 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -372,299 +372,299 @@ }, { "ImportPath": "k8s.io/api/admissionregistration/v1alpha1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/apps/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/apps/v1beta2", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/authentication/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/authentication/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/authorization/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/authorization/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/autoscaling/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/autoscaling/v2alpha1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/batch/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/batch/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/batch/v2alpha1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/certificates/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/core/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/extensions/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/imagepolicy/v1alpha1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/networking/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/policy/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/rbac/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/rbac/v1alpha1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/rbac/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/scheduling/v1alpha1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/settings/v1alpha1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/storage/v1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/api/storage/v1beta1", - "Rev": "6215021b8ed92d69abfaf135ee5f2fb04bacab11" + "Rev": "926789af7ddda62752e08bc9b93f1d1ebbc7b2de" }, { "ImportPath": "k8s.io/apimachinery/pkg/api/equality", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/api/errors", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/api/meta", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/api/resource", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/apimachinery", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/conversion", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/conversion/unstructured", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/fields", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/labels", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime/schema", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/selection", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/types", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/cache", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/clock", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/diff", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/errors", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/framer", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/intstr", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/json", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/net", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/runtime", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/sets", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/validation", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/validation/field", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/wait", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/util/yaml", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/version", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/pkg/watch", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect", - "Rev": "f16ee4db044a21569fc95031aba96d08c5f28e7e" + "Rev": "f02a00c7b3a541adf8a17951f68899f25c410066" }, { "ImportPath": "k8s.io/kube-openapi/pkg/common", diff --git a/informers/BUILD b/informers/BUILD index 07610560..1b1df145 100644 --- a/informers/BUILD +++ b/informers/BUILD @@ -16,7 +16,7 @@ go_library( "//vendor/k8s.io/api/apps/v1beta1:go_default_library", "//vendor/k8s.io/api/apps/v1beta2:go_default_library", "//vendor/k8s.io/api/autoscaling/v1:go_default_library", - "//vendor/k8s.io/api/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/api/batch/v1:go_default_library", "//vendor/k8s.io/api/batch/v1beta1:go_default_library", "//vendor/k8s.io/api/batch/v2alpha1:go_default_library", diff --git a/informers/autoscaling/BUILD b/informers/autoscaling/BUILD index 4169b350..81faa595 100644 --- a/informers/autoscaling/BUILD +++ b/informers/autoscaling/BUILD @@ -1,16 +1,12 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["interface.go"], + visibility = ["//visibility:public"], deps = [ "//vendor/k8s.io/client-go/informers/autoscaling/v1:go_default_library", - "//vendor/k8s.io/client-go/informers/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/client-go/informers/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/client-go/informers/internalinterfaces:go_default_library", ], ) @@ -27,7 +23,8 @@ filegroup( srcs = [ ":package-srcs", "//staging/src/k8s.io/client-go/informers/autoscaling/v1:all-srcs", - "//staging/src/k8s.io/client-go/informers/autoscaling/v2alpha1:all-srcs", + "//staging/src/k8s.io/client-go/informers/autoscaling/v2beta1:all-srcs", ], tags = ["automanaged"], + visibility = ["//visibility:public"], ) diff --git a/informers/autoscaling/interface.go b/informers/autoscaling/interface.go index 02a73232..520c0be3 100644 --- a/informers/autoscaling/interface.go +++ b/informers/autoscaling/interface.go @@ -20,7 +20,7 @@ package autoscaling import ( v1 "k8s.io/client-go/informers/autoscaling/v1" - v2alpha1 "k8s.io/client-go/informers/autoscaling/v2alpha1" + v2beta1 "k8s.io/client-go/informers/autoscaling/v2beta1" internalinterfaces "k8s.io/client-go/informers/internalinterfaces" ) @@ -28,8 +28,8 @@ import ( type Interface interface { // V1 provides access to shared informers for resources in V1. V1() v1.Interface - // V2alpha1 provides access to shared informers for resources in V2alpha1. - V2alpha1() v2alpha1.Interface + // V2beta1 provides access to shared informers for resources in V2beta1. + V2beta1() v2beta1.Interface } type group struct { @@ -46,7 +46,7 @@ func (g *group) V1() v1.Interface { return v1.New(g.SharedInformerFactory) } -// V2alpha1 returns a new v2alpha1.Interface. -func (g *group) V2alpha1() v2alpha1.Interface { - return v2alpha1.New(g.SharedInformerFactory) +// V2beta1 returns a new v2beta1.Interface. +func (g *group) V2beta1() v2beta1.Interface { + return v2beta1.New(g.SharedInformerFactory) } diff --git a/informers/autoscaling/v1/BUILD b/informers/autoscaling/v1/BUILD index b9b49874..2a802abd 100644 --- a/informers/autoscaling/v1/BUILD +++ b/informers/autoscaling/v1/BUILD @@ -1,9 +1,4 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -11,6 +6,7 @@ go_library( "horizontalpodautoscaler.go", "interface.go", ], + visibility = ["//visibility:public"], deps = [ "//vendor/k8s.io/api/autoscaling/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", @@ -34,4 +30,5 @@ filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], + visibility = ["//visibility:public"], ) diff --git a/informers/autoscaling/v2alpha1/BUILD b/informers/autoscaling/v2beta1/BUILD similarity index 73% rename from informers/autoscaling/v2alpha1/BUILD rename to informers/autoscaling/v2beta1/BUILD index f28447c3..2e31e337 100644 --- a/informers/autoscaling/v2alpha1/BUILD +++ b/informers/autoscaling/v2beta1/BUILD @@ -1,9 +1,4 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -11,14 +6,15 @@ go_library( "horizontalpodautoscaler.go", "interface.go", ], + visibility = ["//visibility:public"], deps = [ - "//vendor/k8s.io/api/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", "//vendor/k8s.io/client-go/informers/internalinterfaces:go_default_library", "//vendor/k8s.io/client-go/kubernetes:go_default_library", - "//vendor/k8s.io/client-go/listers/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/client-go/listers/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/client-go/tools/cache:go_default_library", ], ) @@ -34,4 +30,5 @@ filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], + visibility = ["//visibility:public"], ) diff --git a/informers/autoscaling/v2alpha1/horizontalpodautoscaler.go b/informers/autoscaling/v2beta1/horizontalpodautoscaler.go similarity index 76% rename from informers/autoscaling/v2alpha1/horizontalpodautoscaler.go rename to informers/autoscaling/v2beta1/horizontalpodautoscaler.go index 05d7d756..9291b805 100644 --- a/informers/autoscaling/v2alpha1/horizontalpodautoscaler.go +++ b/informers/autoscaling/v2beta1/horizontalpodautoscaler.go @@ -16,16 +16,16 @@ limitations under the License. // This file was automatically generated by informer-gen -package v2alpha1 +package v2beta1 import ( - autoscaling_v2alpha1 "k8s.io/api/autoscaling/v2alpha1" + autoscaling_v2beta1 "k8s.io/api/autoscaling/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" internalinterfaces "k8s.io/client-go/informers/internalinterfaces" kubernetes "k8s.io/client-go/kubernetes" - v2alpha1 "k8s.io/client-go/listers/autoscaling/v2alpha1" + v2beta1 "k8s.io/client-go/listers/autoscaling/v2beta1" cache "k8s.io/client-go/tools/cache" time "time" ) @@ -34,7 +34,7 @@ import ( // HorizontalPodAutoscalers. type HorizontalPodAutoscalerInformer interface { Informer() cache.SharedIndexInformer - Lister() v2alpha1.HorizontalPodAutoscalerLister + Lister() v2beta1.HorizontalPodAutoscalerLister } type horizontalPodAutoscalerInformer struct { @@ -48,13 +48,13 @@ func NewHorizontalPodAutoscalerInformer(client kubernetes.Interface, namespace s return cache.NewSharedIndexInformer( &cache.ListWatch{ ListFunc: func(options v1.ListOptions) (runtime.Object, error) { - return client.AutoscalingV2alpha1().HorizontalPodAutoscalers(namespace).List(options) + return client.AutoscalingV2beta1().HorizontalPodAutoscalers(namespace).List(options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { - return client.AutoscalingV2alpha1().HorizontalPodAutoscalers(namespace).Watch(options) + return client.AutoscalingV2beta1().HorizontalPodAutoscalers(namespace).Watch(options) }, }, - &autoscaling_v2alpha1.HorizontalPodAutoscaler{}, + &autoscaling_v2beta1.HorizontalPodAutoscaler{}, resyncPeriod, indexers, ) @@ -65,9 +65,9 @@ func defaultHorizontalPodAutoscalerInformer(client kubernetes.Interface, resyncP } func (f *horizontalPodAutoscalerInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&autoscaling_v2alpha1.HorizontalPodAutoscaler{}, defaultHorizontalPodAutoscalerInformer) + return f.factory.InformerFor(&autoscaling_v2beta1.HorizontalPodAutoscaler{}, defaultHorizontalPodAutoscalerInformer) } -func (f *horizontalPodAutoscalerInformer) Lister() v2alpha1.HorizontalPodAutoscalerLister { - return v2alpha1.NewHorizontalPodAutoscalerLister(f.Informer().GetIndexer()) +func (f *horizontalPodAutoscalerInformer) Lister() v2beta1.HorizontalPodAutoscalerLister { + return v2beta1.NewHorizontalPodAutoscalerLister(f.Informer().GetIndexer()) } diff --git a/informers/autoscaling/v2alpha1/interface.go b/informers/autoscaling/v2beta1/interface.go similarity index 98% rename from informers/autoscaling/v2alpha1/interface.go rename to informers/autoscaling/v2beta1/interface.go index f334a3f5..4733291b 100644 --- a/informers/autoscaling/v2alpha1/interface.go +++ b/informers/autoscaling/v2beta1/interface.go @@ -16,7 +16,7 @@ limitations under the License. // This file was automatically generated by informer-gen -package v2alpha1 +package v2beta1 import ( internalinterfaces "k8s.io/client-go/informers/internalinterfaces" diff --git a/informers/generic.go b/informers/generic.go index 7530325f..23c4440c 100644 --- a/informers/generic.go +++ b/informers/generic.go @@ -24,10 +24,10 @@ import ( v1beta1 "k8s.io/api/apps/v1beta1" v1beta2 "k8s.io/api/apps/v1beta2" v1 "k8s.io/api/autoscaling/v1" - v2alpha1 "k8s.io/api/autoscaling/v2alpha1" + v2beta1 "k8s.io/api/autoscaling/v2beta1" batch_v1 "k8s.io/api/batch/v1" batch_v1beta1 "k8s.io/api/batch/v1beta1" - batch_v2alpha1 "k8s.io/api/batch/v2alpha1" + v2alpha1 "k8s.io/api/batch/v2alpha1" certificates_v1beta1 "k8s.io/api/certificates/v1beta1" core_v1 "k8s.io/api/core/v1" extensions_v1beta1 "k8s.io/api/extensions/v1beta1" @@ -100,9 +100,9 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource case v1.SchemeGroupVersion.WithResource("horizontalpodautoscalers"): return &genericInformer{resource: resource.GroupResource(), informer: f.Autoscaling().V1().HorizontalPodAutoscalers().Informer()}, nil - // Group=Autoscaling, Version=V2alpha1 - case v2alpha1.SchemeGroupVersion.WithResource("horizontalpodautoscalers"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Autoscaling().V2alpha1().HorizontalPodAutoscalers().Informer()}, nil + // Group=Autoscaling, Version=V2beta1 + case v2beta1.SchemeGroupVersion.WithResource("horizontalpodautoscalers"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Autoscaling().V2beta1().HorizontalPodAutoscalers().Informer()}, nil // Group=Batch, Version=V1 case batch_v1.SchemeGroupVersion.WithResource("jobs"): @@ -113,7 +113,7 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Batch().V1beta1().CronJobs().Informer()}, nil // Group=Batch, Version=V2alpha1 - case batch_v2alpha1.SchemeGroupVersion.WithResource("cronjobs"): + case v2alpha1.SchemeGroupVersion.WithResource("cronjobs"): return &genericInformer{resource: resource.GroupResource(), informer: f.Batch().V2alpha1().CronJobs().Informer()}, nil // Group=Certificates, Version=V1beta1 diff --git a/kubernetes/BUILD b/kubernetes/BUILD index b54432e0..2a15cc0a 100644 --- a/kubernetes/BUILD +++ b/kubernetes/BUILD @@ -23,7 +23,7 @@ go_library( "//vendor/k8s.io/client-go/kubernetes/typed/authorization/v1:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1:go_default_library", - "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/batch/v1:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/batch/v1beta1:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/batch/v2alpha1:go_default_library", @@ -65,7 +65,7 @@ filegroup( "//staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1:all-srcs", "//staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1beta1:all-srcs", "//staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v1:all-srcs", - "//staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1:all-srcs", + "//staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1:all-srcs", "//staging/src/k8s.io/client-go/kubernetes/typed/batch/v1:all-srcs", "//staging/src/k8s.io/client-go/kubernetes/typed/batch/v1beta1:all-srcs", "//staging/src/k8s.io/client-go/kubernetes/typed/batch/v2alpha1:all-srcs", diff --git a/kubernetes/clientset.go b/kubernetes/clientset.go index b8ab155d..d0070914 100644 --- a/kubernetes/clientset.go +++ b/kubernetes/clientset.go @@ -27,7 +27,7 @@ import ( authorizationv1 "k8s.io/client-go/kubernetes/typed/authorization/v1" authorizationv1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1" autoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1" - autoscalingv2alpha1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1" + autoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1" batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1" batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1" batchv2alpha1 "k8s.io/client-go/kubernetes/typed/batch/v2alpha1" @@ -67,7 +67,7 @@ type Interface interface { AutoscalingV1() autoscalingv1.AutoscalingV1Interface // Deprecated: please explicitly pick a version if possible. Autoscaling() autoscalingv1.AutoscalingV1Interface - AutoscalingV2alpha1() autoscalingv2alpha1.AutoscalingV2alpha1Interface + AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface BatchV1() batchv1.BatchV1Interface // Deprecated: please explicitly pick a version if possible. Batch() batchv1.BatchV1Interface @@ -117,7 +117,7 @@ type Clientset struct { authorizationV1 *authorizationv1.AuthorizationV1Client authorizationV1beta1 *authorizationv1beta1.AuthorizationV1beta1Client autoscalingV1 *autoscalingv1.AutoscalingV1Client - autoscalingV2alpha1 *autoscalingv2alpha1.AutoscalingV2alpha1Client + autoscalingV2beta1 *autoscalingv2beta1.AutoscalingV2beta1Client batchV1 *batchv1.BatchV1Client batchV1beta1 *batchv1beta1.BatchV1beta1Client batchV2alpha1 *batchv2alpha1.BatchV2alpha1Client @@ -205,9 +205,9 @@ func (c *Clientset) Autoscaling() autoscalingv1.AutoscalingV1Interface { return c.autoscalingV1 } -// AutoscalingV2alpha1 retrieves the AutoscalingV2alpha1Client -func (c *Clientset) AutoscalingV2alpha1() autoscalingv2alpha1.AutoscalingV2alpha1Interface { - return c.autoscalingV2alpha1 +// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client +func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface { + return c.autoscalingV2beta1 } // BatchV1 retrieves the BatchV1Client @@ -393,7 +393,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } - cs.autoscalingV2alpha1, err = autoscalingv2alpha1.NewForConfig(&configShallowCopy) + cs.autoscalingV2beta1, err = autoscalingv2beta1.NewForConfig(&configShallowCopy) if err != nil { return nil, err } @@ -478,7 +478,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { cs.authorizationV1 = authorizationv1.NewForConfigOrDie(c) cs.authorizationV1beta1 = authorizationv1beta1.NewForConfigOrDie(c) cs.autoscalingV1 = autoscalingv1.NewForConfigOrDie(c) - cs.autoscalingV2alpha1 = autoscalingv2alpha1.NewForConfigOrDie(c) + cs.autoscalingV2beta1 = autoscalingv2beta1.NewForConfigOrDie(c) cs.batchV1 = batchv1.NewForConfigOrDie(c) cs.batchV1beta1 = batchv1beta1.NewForConfigOrDie(c) cs.batchV2alpha1 = batchv2alpha1.NewForConfigOrDie(c) @@ -510,7 +510,7 @@ func New(c rest.Interface) *Clientset { cs.authorizationV1 = authorizationv1.New(c) cs.authorizationV1beta1 = authorizationv1beta1.New(c) cs.autoscalingV1 = autoscalingv1.New(c) - cs.autoscalingV2alpha1 = autoscalingv2alpha1.New(c) + cs.autoscalingV2beta1 = autoscalingv2beta1.New(c) cs.batchV1 = batchv1.New(c) cs.batchV1beta1 = batchv1beta1.New(c) cs.batchV2alpha1 = batchv2alpha1.New(c) diff --git a/kubernetes/fake/BUILD b/kubernetes/fake/BUILD index 76a58d2c..046bd515 100644 --- a/kubernetes/fake/BUILD +++ b/kubernetes/fake/BUILD @@ -21,7 +21,7 @@ go_library( "//vendor/k8s.io/api/authorization/v1:go_default_library", "//vendor/k8s.io/api/authorization/v1beta1:go_default_library", "//vendor/k8s.io/api/autoscaling/v1:go_default_library", - "//vendor/k8s.io/api/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/api/batch/v1:go_default_library", "//vendor/k8s.io/api/batch/v1beta1:go_default_library", "//vendor/k8s.io/api/batch/v2alpha1:go_default_library", @@ -61,8 +61,8 @@ go_library( "//vendor/k8s.io/client-go/kubernetes/typed/authorization/v1beta1/fake:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v1/fake:go_default_library", - "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1:go_default_library", - "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1/fake:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1/fake:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/batch/v1:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/batch/v1/fake:go_default_library", "//vendor/k8s.io/client-go/kubernetes/typed/batch/v1beta1:go_default_library", diff --git a/kubernetes/fake/clientset_generated.go b/kubernetes/fake/clientset_generated.go index 22937cce..0983f4c2 100644 --- a/kubernetes/fake/clientset_generated.go +++ b/kubernetes/fake/clientset_generated.go @@ -38,8 +38,8 @@ import ( fakeauthorizationv1beta1 "k8s.io/client-go/kubernetes/typed/authorization/v1beta1/fake" autoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1" fakeautoscalingv1 "k8s.io/client-go/kubernetes/typed/autoscaling/v1/fake" - autoscalingv2alpha1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1" - fakeautoscalingv2alpha1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1/fake" + autoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1" + fakeautoscalingv2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1/fake" batchv1 "k8s.io/client-go/kubernetes/typed/batch/v1" fakebatchv1 "k8s.io/client-go/kubernetes/typed/batch/v1/fake" batchv1beta1 "k8s.io/client-go/kubernetes/typed/batch/v1beta1" @@ -171,9 +171,9 @@ func (c *Clientset) Autoscaling() autoscalingv1.AutoscalingV1Interface { return &fakeautoscalingv1.FakeAutoscalingV1{Fake: &c.Fake} } -// AutoscalingV2alpha1 retrieves the AutoscalingV2alpha1Client -func (c *Clientset) AutoscalingV2alpha1() autoscalingv2alpha1.AutoscalingV2alpha1Interface { - return &fakeautoscalingv2alpha1.FakeAutoscalingV2alpha1{Fake: &c.Fake} +// AutoscalingV2beta1 retrieves the AutoscalingV2beta1Client +func (c *Clientset) AutoscalingV2beta1() autoscalingv2beta1.AutoscalingV2beta1Interface { + return &fakeautoscalingv2beta1.FakeAutoscalingV2beta1{Fake: &c.Fake} } // BatchV1 retrieves the BatchV1Client diff --git a/kubernetes/fake/register.go b/kubernetes/fake/register.go index c102dcfe..6395d73d 100644 --- a/kubernetes/fake/register.go +++ b/kubernetes/fake/register.go @@ -25,7 +25,7 @@ import ( authorizationv1 "k8s.io/api/authorization/v1" authorizationv1beta1 "k8s.io/api/authorization/v1beta1" autoscalingv1 "k8s.io/api/autoscaling/v1" - autoscalingv2alpha1 "k8s.io/api/autoscaling/v2alpha1" + autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1" batchv1 "k8s.io/api/batch/v1" batchv1beta1 "k8s.io/api/batch/v1beta1" batchv2alpha1 "k8s.io/api/batch/v2alpha1" @@ -79,7 +79,7 @@ func AddToScheme(scheme *runtime.Scheme) { authorizationv1.AddToScheme(scheme) authorizationv1beta1.AddToScheme(scheme) autoscalingv1.AddToScheme(scheme) - autoscalingv2alpha1.AddToScheme(scheme) + autoscalingv2beta1.AddToScheme(scheme) batchv1.AddToScheme(scheme) batchv1beta1.AddToScheme(scheme) batchv2alpha1.AddToScheme(scheme) diff --git a/kubernetes/scheme/BUILD b/kubernetes/scheme/BUILD index d0661ebb..e0dc5f6f 100644 --- a/kubernetes/scheme/BUILD +++ b/kubernetes/scheme/BUILD @@ -20,7 +20,7 @@ go_library( "//vendor/k8s.io/api/authorization/v1:go_default_library", "//vendor/k8s.io/api/authorization/v1beta1:go_default_library", "//vendor/k8s.io/api/autoscaling/v1:go_default_library", - "//vendor/k8s.io/api/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/api/batch/v1:go_default_library", "//vendor/k8s.io/api/batch/v1beta1:go_default_library", "//vendor/k8s.io/api/batch/v2alpha1:go_default_library", diff --git a/kubernetes/scheme/register.go b/kubernetes/scheme/register.go index bdfcfc23..0ee26387 100644 --- a/kubernetes/scheme/register.go +++ b/kubernetes/scheme/register.go @@ -25,7 +25,7 @@ import ( authorizationv1 "k8s.io/api/authorization/v1" authorizationv1beta1 "k8s.io/api/authorization/v1beta1" autoscalingv1 "k8s.io/api/autoscaling/v1" - autoscalingv2alpha1 "k8s.io/api/autoscaling/v2alpha1" + autoscalingv2beta1 "k8s.io/api/autoscaling/v2beta1" batchv1 "k8s.io/api/batch/v1" batchv1beta1 "k8s.io/api/batch/v1beta1" batchv2alpha1 "k8s.io/api/batch/v2alpha1" @@ -79,7 +79,7 @@ func AddToScheme(scheme *runtime.Scheme) { authorizationv1.AddToScheme(scheme) authorizationv1beta1.AddToScheme(scheme) autoscalingv1.AddToScheme(scheme) - autoscalingv2alpha1.AddToScheme(scheme) + autoscalingv2beta1.AddToScheme(scheme) batchv1.AddToScheme(scheme) batchv1beta1.AddToScheme(scheme) batchv2alpha1.AddToScheme(scheme) diff --git a/kubernetes/typed/autoscaling/v2alpha1/BUILD b/kubernetes/typed/autoscaling/v2beta1/BUILD similarity index 80% rename from kubernetes/typed/autoscaling/v2alpha1/BUILD rename to kubernetes/typed/autoscaling/v2beta1/BUILD index e47c20df..c33f07f6 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/BUILD +++ b/kubernetes/typed/autoscaling/v2beta1/BUILD @@ -1,9 +1,4 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -13,8 +8,9 @@ go_library( "generated_expansion.go", "horizontalpodautoscaler.go", ], + visibility = ["//visibility:public"], deps = [ - "//vendor/k8s.io/api/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", @@ -35,7 +31,8 @@ filegroup( name = "all-srcs", srcs = [ ":package-srcs", - "//staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1/fake:all-srcs", + "//staging/src/k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1/fake:all-srcs", ], tags = ["automanaged"], + visibility = ["//visibility:public"], ) diff --git a/kubernetes/typed/autoscaling/v2alpha1/autoscaling_client.go b/kubernetes/typed/autoscaling/v2beta1/autoscaling_client.go similarity index 62% rename from kubernetes/typed/autoscaling/v2alpha1/autoscaling_client.go rename to kubernetes/typed/autoscaling/v2beta1/autoscaling_client.go index c69dd8e2..753e5dc7 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/autoscaling_client.go +++ b/kubernetes/typed/autoscaling/v2beta1/autoscaling_client.go @@ -14,31 +14,31 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v2alpha1 +package v2beta1 import ( - v2alpha1 "k8s.io/api/autoscaling/v2alpha1" + v2beta1 "k8s.io/api/autoscaling/v2beta1" serializer "k8s.io/apimachinery/pkg/runtime/serializer" "k8s.io/client-go/kubernetes/scheme" rest "k8s.io/client-go/rest" ) -type AutoscalingV2alpha1Interface interface { +type AutoscalingV2beta1Interface interface { RESTClient() rest.Interface HorizontalPodAutoscalersGetter } -// AutoscalingV2alpha1Client is used to interact with features provided by the autoscaling group. -type AutoscalingV2alpha1Client struct { +// AutoscalingV2beta1Client is used to interact with features provided by the autoscaling group. +type AutoscalingV2beta1Client struct { restClient rest.Interface } -func (c *AutoscalingV2alpha1Client) HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface { +func (c *AutoscalingV2beta1Client) HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface { return newHorizontalPodAutoscalers(c, namespace) } -// NewForConfig creates a new AutoscalingV2alpha1Client for the given config. -func NewForConfig(c *rest.Config) (*AutoscalingV2alpha1Client, error) { +// NewForConfig creates a new AutoscalingV2beta1Client for the given config. +func NewForConfig(c *rest.Config) (*AutoscalingV2beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -47,12 +47,12 @@ func NewForConfig(c *rest.Config) (*AutoscalingV2alpha1Client, error) { if err != nil { return nil, err } - return &AutoscalingV2alpha1Client{client}, nil + return &AutoscalingV2beta1Client{client}, nil } -// NewForConfigOrDie creates a new AutoscalingV2alpha1Client for the given config and +// NewForConfigOrDie creates a new AutoscalingV2beta1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *AutoscalingV2alpha1Client { +func NewForConfigOrDie(c *rest.Config) *AutoscalingV2beta1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -60,13 +60,13 @@ func NewForConfigOrDie(c *rest.Config) *AutoscalingV2alpha1Client { return client } -// New creates a new AutoscalingV2alpha1Client for the given RESTClient. -func New(c rest.Interface) *AutoscalingV2alpha1Client { - return &AutoscalingV2alpha1Client{c} +// New creates a new AutoscalingV2beta1Client for the given RESTClient. +func New(c rest.Interface) *AutoscalingV2beta1Client { + return &AutoscalingV2beta1Client{c} } func setConfigDefaults(config *rest.Config) error { - gv := v2alpha1.SchemeGroupVersion + gv := v2beta1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs} @@ -80,7 +80,7 @@ func setConfigDefaults(config *rest.Config) error { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *AutoscalingV2alpha1Client) RESTClient() rest.Interface { +func (c *AutoscalingV2beta1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/kubernetes/typed/autoscaling/v2alpha1/doc.go b/kubernetes/typed/autoscaling/v2beta1/doc.go similarity index 97% rename from kubernetes/typed/autoscaling/v2alpha1/doc.go rename to kubernetes/typed/autoscaling/v2beta1/doc.go index d29bd3f4..a357dc25 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/doc.go +++ b/kubernetes/typed/autoscaling/v2beta1/doc.go @@ -17,4 +17,4 @@ limitations under the License. // This package is generated by client-gen with custom arguments. // This package has the automatically generated typed clients. -package v2alpha1 +package v2beta1 diff --git a/kubernetes/typed/autoscaling/v2alpha1/fake/BUILD b/kubernetes/typed/autoscaling/v2beta1/fake/BUILD similarity index 80% rename from kubernetes/typed/autoscaling/v2alpha1/fake/BUILD rename to kubernetes/typed/autoscaling/v2beta1/fake/BUILD index a326e8b0..e0f65078 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/fake/BUILD +++ b/kubernetes/typed/autoscaling/v2beta1/fake/BUILD @@ -1,9 +1,4 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -12,14 +7,15 @@ go_library( "fake_autoscaling_client.go", "fake_horizontalpodautoscaler.go", ], + visibility = ["//visibility:public"], deps = [ - "//vendor/k8s.io/api/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/types:go_default_library", "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", - "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/client-go/rest:go_default_library", "//vendor/k8s.io/client-go/testing:go_default_library", ], @@ -36,4 +32,5 @@ filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], + visibility = ["//visibility:public"], ) diff --git a/kubernetes/typed/autoscaling/v2alpha1/fake/doc.go b/kubernetes/typed/autoscaling/v2beta1/fake/doc.go similarity index 100% rename from kubernetes/typed/autoscaling/v2alpha1/fake/doc.go rename to kubernetes/typed/autoscaling/v2beta1/fake/doc.go diff --git a/kubernetes/typed/autoscaling/v2alpha1/fake/fake_autoscaling_client.go b/kubernetes/typed/autoscaling/v2beta1/fake/fake_autoscaling_client.go similarity index 75% rename from kubernetes/typed/autoscaling/v2alpha1/fake/fake_autoscaling_client.go rename to kubernetes/typed/autoscaling/v2beta1/fake/fake_autoscaling_client.go index d9518a71..e997033c 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/fake/fake_autoscaling_client.go +++ b/kubernetes/typed/autoscaling/v2beta1/fake/fake_autoscaling_client.go @@ -17,22 +17,22 @@ limitations under the License. package fake import ( - v2alpha1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2alpha1" + v2beta1 "k8s.io/client-go/kubernetes/typed/autoscaling/v2beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeAutoscalingV2alpha1 struct { +type FakeAutoscalingV2beta1 struct { *testing.Fake } -func (c *FakeAutoscalingV2alpha1) HorizontalPodAutoscalers(namespace string) v2alpha1.HorizontalPodAutoscalerInterface { +func (c *FakeAutoscalingV2beta1) HorizontalPodAutoscalers(namespace string) v2beta1.HorizontalPodAutoscalerInterface { return &FakeHorizontalPodAutoscalers{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeAutoscalingV2alpha1) RESTClient() rest.Interface { +func (c *FakeAutoscalingV2beta1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/kubernetes/typed/autoscaling/v2alpha1/fake/fake_horizontalpodautoscaler.go b/kubernetes/typed/autoscaling/v2beta1/fake/fake_horizontalpodautoscaler.go similarity index 70% rename from kubernetes/typed/autoscaling/v2alpha1/fake/fake_horizontalpodautoscaler.go rename to kubernetes/typed/autoscaling/v2beta1/fake/fake_horizontalpodautoscaler.go index baee069a..6b70822a 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/fake/fake_horizontalpodautoscaler.go +++ b/kubernetes/typed/autoscaling/v2beta1/fake/fake_horizontalpodautoscaler.go @@ -17,7 +17,7 @@ limitations under the License. package fake import ( - v2alpha1 "k8s.io/api/autoscaling/v2alpha1" + v2beta1 "k8s.io/api/autoscaling/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -28,29 +28,29 @@ import ( // FakeHorizontalPodAutoscalers implements HorizontalPodAutoscalerInterface type FakeHorizontalPodAutoscalers struct { - Fake *FakeAutoscalingV2alpha1 + Fake *FakeAutoscalingV2beta1 ns string } -var horizontalpodautoscalersResource = schema.GroupVersionResource{Group: "autoscaling", Version: "v2alpha1", Resource: "horizontalpodautoscalers"} +var horizontalpodautoscalersResource = schema.GroupVersionResource{Group: "autoscaling", Version: "v2beta1", Resource: "horizontalpodautoscalers"} -var horizontalpodautoscalersKind = schema.GroupVersionKind{Group: "autoscaling", Version: "v2alpha1", Kind: "HorizontalPodAutoscaler"} +var horizontalpodautoscalersKind = schema.GroupVersionKind{Group: "autoscaling", Version: "v2beta1", Kind: "HorizontalPodAutoscaler"} // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. -func (c *FakeHorizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *v2alpha1.HorizontalPodAutoscaler, err error) { +func (c *FakeHorizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), &v2alpha1.HorizontalPodAutoscaler{}) + Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), &v2beta1.HorizontalPodAutoscaler{}) if obj == nil { return nil, err } - return obj.(*v2alpha1.HorizontalPodAutoscaler), err + return obj.(*v2beta1.HorizontalPodAutoscaler), err } // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. -func (c *FakeHorizontalPodAutoscalers) List(opts v1.ListOptions) (result *v2alpha1.HorizontalPodAutoscalerList, err error) { +func (c *FakeHorizontalPodAutoscalers) List(opts v1.ListOptions) (result *v2beta1.HorizontalPodAutoscalerList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), &v2alpha1.HorizontalPodAutoscalerList{}) + Invokes(testing.NewListAction(horizontalpodautoscalersResource, horizontalpodautoscalersKind, c.ns, opts), &v2beta1.HorizontalPodAutoscalerList{}) if obj == nil { return nil, err @@ -60,8 +60,8 @@ func (c *FakeHorizontalPodAutoscalers) List(opts v1.ListOptions) (result *v2alph if label == nil { label = labels.Everything() } - list := &v2alpha1.HorizontalPodAutoscalerList{} - for _, item := range obj.(*v2alpha1.HorizontalPodAutoscalerList).Items { + list := &v2beta1.HorizontalPodAutoscalerList{} + for _, item := range obj.(*v2beta1.HorizontalPodAutoscalerList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -77,43 +77,43 @@ func (c *FakeHorizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interfa } // Create takes the representation of a horizontalPodAutoscaler and creates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. -func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *v2alpha1.HorizontalPodAutoscaler) (result *v2alpha1.HorizontalPodAutoscaler, err error) { +func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler) (result *v2beta1.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v2alpha1.HorizontalPodAutoscaler{}) + Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v2beta1.HorizontalPodAutoscaler{}) if obj == nil { return nil, err } - return obj.(*v2alpha1.HorizontalPodAutoscaler), err + return obj.(*v2beta1.HorizontalPodAutoscaler), err } // Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. -func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *v2alpha1.HorizontalPodAutoscaler) (result *v2alpha1.HorizontalPodAutoscaler, err error) { +func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler) (result *v2beta1.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v2alpha1.HorizontalPodAutoscaler{}) + Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v2beta1.HorizontalPodAutoscaler{}) if obj == nil { return nil, err } - return obj.(*v2alpha1.HorizontalPodAutoscaler), err + return obj.(*v2beta1.HorizontalPodAutoscaler), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v2alpha1.HorizontalPodAutoscaler) (*v2alpha1.HorizontalPodAutoscaler, error) { +func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler) (*v2beta1.HorizontalPodAutoscaler, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &v2alpha1.HorizontalPodAutoscaler{}) + Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &v2beta1.HorizontalPodAutoscaler{}) if obj == nil { return nil, err } - return obj.(*v2alpha1.HorizontalPodAutoscaler), err + return obj.(*v2beta1.HorizontalPodAutoscaler), err } // Delete takes name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &v2alpha1.HorizontalPodAutoscaler{}) + Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &v2beta1.HorizontalPodAutoscaler{}) return err } @@ -122,17 +122,17 @@ func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *v1.DeleteOpt func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error { action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) - _, err := c.Fake.Invokes(action, &v2alpha1.HorizontalPodAutoscalerList{}) + _, err := c.Fake.Invokes(action, &v2beta1.HorizontalPodAutoscalerList{}) return err } // Patch applies the patch and returns the patched horizontalPodAutoscaler. -func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2alpha1.HorizontalPodAutoscaler, err error) { +func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2beta1.HorizontalPodAutoscaler, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, data, subresources...), &v2alpha1.HorizontalPodAutoscaler{}) + Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, data, subresources...), &v2beta1.HorizontalPodAutoscaler{}) if obj == nil { return nil, err } - return obj.(*v2alpha1.HorizontalPodAutoscaler), err + return obj.(*v2beta1.HorizontalPodAutoscaler), err } diff --git a/kubernetes/typed/autoscaling/v2alpha1/generated_expansion.go b/kubernetes/typed/autoscaling/v2beta1/generated_expansion.go similarity index 97% rename from kubernetes/typed/autoscaling/v2alpha1/generated_expansion.go rename to kubernetes/typed/autoscaling/v2beta1/generated_expansion.go index e40f2c5a..eddac4a7 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/generated_expansion.go +++ b/kubernetes/typed/autoscaling/v2beta1/generated_expansion.go @@ -14,6 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v2alpha1 +package v2beta1 type HorizontalPodAutoscalerExpansion interface{} diff --git a/kubernetes/typed/autoscaling/v2alpha1/horizontalpodautoscaler.go b/kubernetes/typed/autoscaling/v2beta1/horizontalpodautoscaler.go similarity index 78% rename from kubernetes/typed/autoscaling/v2alpha1/horizontalpodautoscaler.go rename to kubernetes/typed/autoscaling/v2beta1/horizontalpodautoscaler.go index bc00001d..9ff497c1 100644 --- a/kubernetes/typed/autoscaling/v2alpha1/horizontalpodautoscaler.go +++ b/kubernetes/typed/autoscaling/v2beta1/horizontalpodautoscaler.go @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and limitations under the License. */ -package v2alpha1 +package v2beta1 import ( - v2alpha1 "k8s.io/api/autoscaling/v2alpha1" + v2beta1 "k8s.io/api/autoscaling/v2beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" @@ -33,15 +33,15 @@ type HorizontalPodAutoscalersGetter interface { // HorizontalPodAutoscalerInterface has methods to work with HorizontalPodAutoscaler resources. type HorizontalPodAutoscalerInterface interface { - Create(*v2alpha1.HorizontalPodAutoscaler) (*v2alpha1.HorizontalPodAutoscaler, error) - Update(*v2alpha1.HorizontalPodAutoscaler) (*v2alpha1.HorizontalPodAutoscaler, error) - UpdateStatus(*v2alpha1.HorizontalPodAutoscaler) (*v2alpha1.HorizontalPodAutoscaler, error) + Create(*v2beta1.HorizontalPodAutoscaler) (*v2beta1.HorizontalPodAutoscaler, error) + Update(*v2beta1.HorizontalPodAutoscaler) (*v2beta1.HorizontalPodAutoscaler, error) + UpdateStatus(*v2beta1.HorizontalPodAutoscaler) (*v2beta1.HorizontalPodAutoscaler, error) Delete(name string, options *v1.DeleteOptions) error DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error - Get(name string, options v1.GetOptions) (*v2alpha1.HorizontalPodAutoscaler, error) - List(opts v1.ListOptions) (*v2alpha1.HorizontalPodAutoscalerList, error) + Get(name string, options v1.GetOptions) (*v2beta1.HorizontalPodAutoscaler, error) + List(opts v1.ListOptions) (*v2beta1.HorizontalPodAutoscalerList, error) Watch(opts v1.ListOptions) (watch.Interface, error) - Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2alpha1.HorizontalPodAutoscaler, err error) + Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2beta1.HorizontalPodAutoscaler, err error) HorizontalPodAutoscalerExpansion } @@ -52,7 +52,7 @@ type horizontalPodAutoscalers struct { } // newHorizontalPodAutoscalers returns a HorizontalPodAutoscalers -func newHorizontalPodAutoscalers(c *AutoscalingV2alpha1Client, namespace string) *horizontalPodAutoscalers { +func newHorizontalPodAutoscalers(c *AutoscalingV2beta1Client, namespace string) *horizontalPodAutoscalers { return &horizontalPodAutoscalers{ client: c.RESTClient(), ns: namespace, @@ -60,8 +60,8 @@ func newHorizontalPodAutoscalers(c *AutoscalingV2alpha1Client, namespace string) } // Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. -func (c *horizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *v2alpha1.HorizontalPodAutoscaler, err error) { - result = &v2alpha1.HorizontalPodAutoscaler{} +func (c *horizontalPodAutoscalers) Get(name string, options v1.GetOptions) (result *v2beta1.HorizontalPodAutoscaler, err error) { + result = &v2beta1.HorizontalPodAutoscaler{} err = c.client.Get(). Namespace(c.ns). Resource("horizontalpodautoscalers"). @@ -73,8 +73,8 @@ func (c *horizontalPodAutoscalers) Get(name string, options v1.GetOptions) (resu } // List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. -func (c *horizontalPodAutoscalers) List(opts v1.ListOptions) (result *v2alpha1.HorizontalPodAutoscalerList, err error) { - result = &v2alpha1.HorizontalPodAutoscalerList{} +func (c *horizontalPodAutoscalers) List(opts v1.ListOptions) (result *v2beta1.HorizontalPodAutoscalerList, err error) { + result = &v2beta1.HorizontalPodAutoscalerList{} err = c.client.Get(). Namespace(c.ns). Resource("horizontalpodautoscalers"). @@ -95,8 +95,8 @@ func (c *horizontalPodAutoscalers) Watch(opts v1.ListOptions) (watch.Interface, } // Create takes the representation of a horizontalPodAutoscaler and creates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. -func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *v2alpha1.HorizontalPodAutoscaler) (result *v2alpha1.HorizontalPodAutoscaler, err error) { - result = &v2alpha1.HorizontalPodAutoscaler{} +func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler) (result *v2beta1.HorizontalPodAutoscaler, err error) { + result = &v2beta1.HorizontalPodAutoscaler{} err = c.client.Post(). Namespace(c.ns). Resource("horizontalpodautoscalers"). @@ -107,8 +107,8 @@ func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *v2alpha1.Hori } // Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. -func (c *horizontalPodAutoscalers) Update(horizontalPodAutoscaler *v2alpha1.HorizontalPodAutoscaler) (result *v2alpha1.HorizontalPodAutoscaler, err error) { - result = &v2alpha1.HorizontalPodAutoscaler{} +func (c *horizontalPodAutoscalers) Update(horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler) (result *v2beta1.HorizontalPodAutoscaler, err error) { + result = &v2beta1.HorizontalPodAutoscaler{} err = c.client.Put(). Namespace(c.ns). Resource("horizontalpodautoscalers"). @@ -122,8 +122,8 @@ func (c *horizontalPodAutoscalers) Update(horizontalPodAutoscaler *v2alpha1.Hori // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *horizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v2alpha1.HorizontalPodAutoscaler) (result *v2alpha1.HorizontalPodAutoscaler, err error) { - result = &v2alpha1.HorizontalPodAutoscaler{} +func (c *horizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v2beta1.HorizontalPodAutoscaler) (result *v2beta1.HorizontalPodAutoscaler, err error) { + result = &v2beta1.HorizontalPodAutoscaler{} err = c.client.Put(). Namespace(c.ns). Resource("horizontalpodautoscalers"). @@ -158,8 +158,8 @@ func (c *horizontalPodAutoscalers) DeleteCollection(options *v1.DeleteOptions, l } // Patch applies the patch and returns the patched horizontalPodAutoscaler. -func (c *horizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2alpha1.HorizontalPodAutoscaler, err error) { - result = &v2alpha1.HorizontalPodAutoscaler{} +func (c *horizontalPodAutoscalers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v2beta1.HorizontalPodAutoscaler, err error) { + result = &v2beta1.HorizontalPodAutoscaler{} err = c.client.Patch(pt). Namespace(c.ns). Resource("horizontalpodautoscalers"). diff --git a/listers/autoscaling/v1/BUILD b/listers/autoscaling/v1/BUILD index f52b549e..964cc666 100644 --- a/listers/autoscaling/v1/BUILD +++ b/listers/autoscaling/v1/BUILD @@ -1,9 +1,4 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -11,6 +6,7 @@ go_library( "expansion_generated.go", "horizontalpodautoscaler.go", ], + visibility = ["//visibility:public"], deps = [ "//vendor/k8s.io/api/autoscaling/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", @@ -30,4 +26,5 @@ filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], + visibility = ["//visibility:public"], ) diff --git a/listers/autoscaling/v2alpha1/BUILD b/listers/autoscaling/v2beta1/BUILD similarity index 74% rename from listers/autoscaling/v2alpha1/BUILD rename to listers/autoscaling/v2beta1/BUILD index 29131c9c..dc907684 100644 --- a/listers/autoscaling/v2alpha1/BUILD +++ b/listers/autoscaling/v2beta1/BUILD @@ -1,9 +1,4 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "@io_bazel_rules_go//go:def.bzl", - "go_library", -) +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -11,8 +6,9 @@ go_library( "expansion_generated.go", "horizontalpodautoscaler.go", ], + visibility = ["//visibility:public"], deps = [ - "//vendor/k8s.io/api/autoscaling/v2alpha1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", "//vendor/k8s.io/apimachinery/pkg/labels:go_default_library", "//vendor/k8s.io/client-go/tools/cache:go_default_library", @@ -30,4 +26,5 @@ filegroup( name = "all-srcs", srcs = [":package-srcs"], tags = ["automanaged"], + visibility = ["//visibility:public"], ) diff --git a/listers/autoscaling/v2alpha1/expansion_generated.go b/listers/autoscaling/v2beta1/expansion_generated.go similarity index 98% rename from listers/autoscaling/v2alpha1/expansion_generated.go rename to listers/autoscaling/v2beta1/expansion_generated.go index fd02e2b2..9e84ef13 100644 --- a/listers/autoscaling/v2alpha1/expansion_generated.go +++ b/listers/autoscaling/v2beta1/expansion_generated.go @@ -16,7 +16,7 @@ limitations under the License. // This file was automatically generated by lister-gen -package v2alpha1 +package v2beta1 // HorizontalPodAutoscalerListerExpansion allows custom methods to be added to // HorizontalPodAutoscalerLister. diff --git a/listers/autoscaling/v2alpha1/horizontalpodautoscaler.go b/listers/autoscaling/v2beta1/horizontalpodautoscaler.go similarity index 81% rename from listers/autoscaling/v2alpha1/horizontalpodautoscaler.go rename to listers/autoscaling/v2beta1/horizontalpodautoscaler.go index 8fb8fcc3..c8fbdecd 100644 --- a/listers/autoscaling/v2alpha1/horizontalpodautoscaler.go +++ b/listers/autoscaling/v2beta1/horizontalpodautoscaler.go @@ -16,10 +16,10 @@ limitations under the License. // This file was automatically generated by lister-gen -package v2alpha1 +package v2beta1 import ( - v2alpha1 "k8s.io/api/autoscaling/v2alpha1" + v2beta1 "k8s.io/api/autoscaling/v2beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" @@ -28,7 +28,7 @@ import ( // HorizontalPodAutoscalerLister helps list HorizontalPodAutoscalers. type HorizontalPodAutoscalerLister interface { // List lists all HorizontalPodAutoscalers in the indexer. - List(selector labels.Selector) (ret []*v2alpha1.HorizontalPodAutoscaler, err error) + List(selector labels.Selector) (ret []*v2beta1.HorizontalPodAutoscaler, err error) // HorizontalPodAutoscalers returns an object that can list and get HorizontalPodAutoscalers. HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerNamespaceLister HorizontalPodAutoscalerListerExpansion @@ -45,9 +45,9 @@ func NewHorizontalPodAutoscalerLister(indexer cache.Indexer) HorizontalPodAutosc } // List lists all HorizontalPodAutoscalers in the indexer. -func (s *horizontalPodAutoscalerLister) List(selector labels.Selector) (ret []*v2alpha1.HorizontalPodAutoscaler, err error) { +func (s *horizontalPodAutoscalerLister) List(selector labels.Selector) (ret []*v2beta1.HorizontalPodAutoscaler, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v2alpha1.HorizontalPodAutoscaler)) + ret = append(ret, m.(*v2beta1.HorizontalPodAutoscaler)) }) return ret, err } @@ -60,9 +60,9 @@ func (s *horizontalPodAutoscalerLister) HorizontalPodAutoscalers(namespace strin // HorizontalPodAutoscalerNamespaceLister helps list and get HorizontalPodAutoscalers. type HorizontalPodAutoscalerNamespaceLister interface { // List lists all HorizontalPodAutoscalers in the indexer for a given namespace. - List(selector labels.Selector) (ret []*v2alpha1.HorizontalPodAutoscaler, err error) + List(selector labels.Selector) (ret []*v2beta1.HorizontalPodAutoscaler, err error) // Get retrieves the HorizontalPodAutoscaler from the indexer for a given namespace and name. - Get(name string) (*v2alpha1.HorizontalPodAutoscaler, error) + Get(name string) (*v2beta1.HorizontalPodAutoscaler, error) HorizontalPodAutoscalerNamespaceListerExpansion } @@ -74,21 +74,21 @@ type horizontalPodAutoscalerNamespaceLister struct { } // List lists all HorizontalPodAutoscalers in the indexer for a given namespace. -func (s horizontalPodAutoscalerNamespaceLister) List(selector labels.Selector) (ret []*v2alpha1.HorizontalPodAutoscaler, err error) { +func (s horizontalPodAutoscalerNamespaceLister) List(selector labels.Selector) (ret []*v2beta1.HorizontalPodAutoscaler, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v2alpha1.HorizontalPodAutoscaler)) + ret = append(ret, m.(*v2beta1.HorizontalPodAutoscaler)) }) return ret, err } // Get retrieves the HorizontalPodAutoscaler from the indexer for a given namespace and name. -func (s horizontalPodAutoscalerNamespaceLister) Get(name string) (*v2alpha1.HorizontalPodAutoscaler, error) { +func (s horizontalPodAutoscalerNamespaceLister) Get(name string) (*v2beta1.HorizontalPodAutoscaler, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { - return nil, errors.NewNotFound(v2alpha1.Resource("horizontalpodautoscaler"), name) + return nil, errors.NewNotFound(v2beta1.Resource("horizontalpodautoscaler"), name) } - return obj.(*v2alpha1.HorizontalPodAutoscaler), nil + return obj.(*v2beta1.HorizontalPodAutoscaler), nil }