From 013856a8b8280f841971b7a9e2d46060f88483c8 Mon Sep 17 00:00:00 2001 From: John Gardiner Myers Date: Thu, 16 Jan 2020 11:32:30 -0800 Subject: [PATCH] update-bazel.sh --- .../bazel-gazelle/cmd/gazelle/BUILD.bazel | 37 +++--- .../bazel-gazelle/config/BUILD.bazel | 14 +-- .../bazelbuild/bazel-gazelle/flag/BUILD.bazel | 1 + .../internal/version/BUILD.bazel | 9 +- .../bazel-gazelle/internal/wspace/BUILD.bazel | 10 +- .../bazel-gazelle/label/BUILD.bazel | 11 +- .../bazel-gazelle/language/BUILD.bazel | 9 +- .../bazel-gazelle/language/go/BUILD.bazel | 58 +++------ .../bazel-gazelle/language/proto/BUILD.bazel | 39 ++---- .../bazel-gazelle/merger/BUILD.bazel | 18 +-- .../bazel-gazelle/pathtools/BUILD.bazel | 9 +- .../bazelbuild/bazel-gazelle/repo/BUILD.bazel | 27 +---- .../bazel-gazelle/resolve/BUILD.bazel | 9 +- .../bazelbuild/bazel-gazelle/rule/BUILD.bazel | 19 +-- .../bazelbuild/bazel-gazelle/walk/BUILD.bazel | 22 +--- .../bazelbuild/buildtools/build/BUILD.bazel | 31 +---- .../bazelbuild/buildtools/tables/BUILD.bazel | 11 +- .../pkg/client/metrics/prometheus/BUILD | 3 +- vendor/k8s.io/kubernetes/pkg/kubectl/BUILD | 99 +++++----------- .../k8s.io/kubernetes/pkg/kubectl/apps/BUILD | 19 +-- .../kubernetes/pkg/kubectl/cmd/util/BUILD | 73 ++++-------- .../pkg/kubectl/cmd/util/editor/BUILD | 49 ++++---- .../pkg/kubectl/cmd/util/editor/crlf/BUILD | 1 + .../pkg/kubectl/cmd/util/openapi/BUILD | 29 +---- .../kubectl/cmd/util/openapi/validation/BUILD | 32 +---- .../kubernetes/pkg/kubectl/describe/BUILD | 5 +- .../pkg/kubectl/describe/versioned/BUILD | 111 +++++++----------- .../kubernetes/pkg/kubectl/generated/BUILD | 1 + .../kubernetes/pkg/kubectl/scheme/BUILD | 87 ++++++-------- .../k8s.io/kubernetes/pkg/kubectl/util/BUILD | 27 ++--- .../pkg/kubectl/util/certificate/BUILD | 3 +- .../pkg/kubectl/util/deployment/BUILD | 17 +-- .../kubernetes/pkg/kubectl/util/event/BUILD | 14 +-- .../pkg/kubectl/util/fieldpath/BUILD | 7 +- .../kubernetes/pkg/kubectl/util/i18n/BUILD | 10 +- .../pkg/kubectl/util/interrupt/BUILD | 1 + .../pkg/kubectl/util/podutils/BUILD | 5 +- .../kubernetes/pkg/kubectl/util/qos/BUILD | 7 +- .../kubernetes/pkg/kubectl/util/rbac/BUILD | 3 +- .../pkg/kubectl/util/resource/BUILD | 7 +- .../kubernetes/pkg/kubectl/util/slice/BUILD | 8 +- .../kubernetes/pkg/kubectl/util/storage/BUILD | 5 +- .../pkg/kubectl/util/templates/BUILD | 3 +- .../kubernetes/pkg/kubectl/util/term/BUILD | 17 ++- .../kubernetes/pkg/kubectl/validation/BUILD | 13 +- .../kubernetes/pkg/kubectl/version/BUILD | 3 +- vendor/k8s.io/kubernetes/pkg/util/mount/BUILD | 31 ++--- .../kubernetes/pkg/volume/util/nsenter/BUILD | 43 +++---- 48 files changed, 345 insertions(+), 722 deletions(-) diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle/BUILD.bazel index c61222ea1a6cc..99b33f58c2068 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle/BUILD.bazel @@ -35,23 +35,24 @@ go_library( "update-repos.go", "version.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/cmd/gazelle", importpath = "github.com/bazelbuild/bazel-gazelle/cmd/gazelle", tags = ["manual"], visibility = ["//visibility:public"], deps = [ - "//config:go_default_library", - "//flag:go_default_library", - "//internal/version:go_default_library", - "//label:go_default_library", - "//language:go_default_library", - "//language/go:go_default_library", - "//language/proto:go_default_library", - "//merger:go_default_library", - "//repo:go_default_library", - "//resolve:go_default_library", - "//rule:go_default_library", - "//walk:go_default_library", - "@com_github_pmezard_go_difflib//difflib:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/config:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/flag:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/internal/version:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/label:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/language:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/language/go:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/language/proto:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/merger:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/repo:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/resolve:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/walk:go_default_library", + "//vendor/github.com/pmezard/go-difflib/difflib:go_default_library", ], ) @@ -59,20 +60,10 @@ go_test( name = "go_default_test", size = "small", srcs = [ - "diff_test.go", - "fix_test.go", - "integration_test.go", "langs.go", # keep ], args = ["-go_sdk=go_sdk"], data = ["@go_sdk//:files"], - embed = [":go_default_library"], - deps = [ - "//config:go_default_library", - "//internal/wspace:go_default_library", - "//testtools:go_default_library", - "@io_bazel_rules_go//go/tools/bazel:go_default_library", - ], ) filegroup( diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/config/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/config/BUILD.bazel index f9b404a044cda..2340a49f280bc 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/config/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/config/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -6,21 +6,15 @@ go_library( "config.go", "constants.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/config", importpath = "github.com/bazelbuild/bazel-gazelle/config", visibility = ["//visibility:public"], deps = [ - "//internal/wspace:go_default_library", - "//rule:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/internal/wspace:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", ], ) -go_test( - name = "go_default_test", - srcs = ["config_test.go"], - embed = [":go_default_library"], - deps = ["//rule:go_default_library"], -) - filegroup( name = "all_files", testonly = True, diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/flag/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/flag/BUILD.bazel index fa552f6dfe295..c361004cac26a 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/flag/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/flag/BUILD.bazel @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["flag.go"], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/flag", importpath = "github.com/bazelbuild/bazel-gazelle/flag", visibility = ["//visibility:public"], ) diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/internal/version/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/internal/version/BUILD.bazel index 7d39e6ee8b19d..7295c679c30b6 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/internal/version/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/internal/version/BUILD.bazel @@ -1,18 +1,13 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["version.go"], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/internal/version", importpath = "github.com/bazelbuild/bazel-gazelle/internal/version", visibility = ["//:__subpackages__"], ) -go_test( - name = "go_default_test", - srcs = ["version_test.go"], - embed = [":go_default_library"], -) - filegroup( name = "all_files", testonly = True, diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/internal/wspace/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/internal/wspace/BUILD.bazel index 0038082049461..c9d4fc0a66ceb 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/internal/wspace/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/internal/wspace/BUILD.bazel @@ -1,19 +1,13 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["finder.go"], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/internal/wspace", importpath = "github.com/bazelbuild/bazel-gazelle/internal/wspace", visibility = ["//visibility:public"], ) -go_test( - name = "go_default_test", - size = "small", - srcs = ["finder_test.go"], - embed = [":go_default_library"], -) - filegroup( name = "all_files", testonly = True, diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/label/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/label/BUILD.bazel index 7a657c2a781ac..83c7899adb4d1 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/label/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/label/BUILD.bazel @@ -1,17 +1,12 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["label.go"], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/label", importpath = "github.com/bazelbuild/bazel-gazelle/label", visibility = ["//visibility:public"], - deps = ["//pathtools:go_default_library"], -) - -go_test( - name = "go_default_test", - srcs = ["label_test.go"], - embed = [":go_default_library"], + deps = ["//vendor/github.com/bazelbuild/bazel-gazelle/pathtools:go_default_library"], ) filegroup( diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/language/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/language/BUILD.bazel index d3f5f132ae9d3..b9183426d91e1 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/language/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/language/BUILD.bazel @@ -6,13 +6,14 @@ go_library( "lang.go", "update.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/language", importpath = "github.com/bazelbuild/bazel-gazelle/language", visibility = ["//visibility:public"], deps = [ - "//config:go_default_library", - "//repo:go_default_library", - "//resolve:go_default_library", - "//rule:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/config:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/repo:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/resolve:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", ], ) diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/language/go/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/language/go/BUILD.bazel index 30bbbda74ab4f..b069936959dcd 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/language/go/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/language/go/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") load(":def.bzl", "std_package_list") # gazelle:exclude testdata @@ -47,52 +47,22 @@ go_library( "std_package_list.go", "update.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/language/go", importpath = "github.com/bazelbuild/bazel-gazelle/language/go", visibility = ["//visibility:public"], deps = [ - "//config:go_default_library", - "//flag:go_default_library", - "//label:go_default_library", - "//language:go_default_library", - "//language/proto:go_default_library", - "//pathtools:go_default_library", - "//repo:go_default_library", - "//resolve:go_default_library", - "//rule:go_default_library", - "@com_github_bazelbuild_buildtools//build:go_default_library", - "@com_github_pelletier_go_toml//:go_default_library", - "@org_golang_x_sync//errgroup:go_default_library", - ], -) - -go_test( - name = "go_default_test", - srcs = [ - "config_test.go", - "fileinfo_go_test.go", - "fileinfo_test.go", - "fix_test.go", - "generate_test.go", - "resolve_test.go", - "stubs_test.go", - "update_import_test.go", - ], - data = glob(["testdata/**"]), - embed = [":go_default_library"], - deps = [ - "//config:go_default_library", - "//label:go_default_library", - "//language:go_default_library", - "//language/proto:go_default_library", - "//merger:go_default_library", - "//pathtools:go_default_library", - "//repo:go_default_library", - "//resolve:go_default_library", - "//rule:go_default_library", - "//testtools:go_default_library", - "//walk:go_default_library", - "@com_github_bazelbuild_buildtools//build:go_default_library", - "@org_golang_x_tools//go/vcs:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/config:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/flag:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/label:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/language:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/language/proto:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/pathtools:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/repo:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/resolve:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", + "//vendor/github.com/bazelbuild/buildtools/build:go_default_library", + "//vendor/github.com/pelletier/go-toml:go_default_library", + "//vendor/golang.org/x/sync/errgroup:go_default_library", ], ) diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/language/proto/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/language/proto/BUILD.bazel index b7ed986ac155c..c5dd92344f861 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/language/proto/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/language/proto/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") # gazelle:exclude testdata @@ -24,39 +24,16 @@ go_library( "package.go", "resolve.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/language/proto", importpath = "github.com/bazelbuild/bazel-gazelle/language/proto", visibility = ["//visibility:public"], deps = [ - "//config:go_default_library", - "//label:go_default_library", - "//language:go_default_library", - "//repo:go_default_library", - "//resolve:go_default_library", - "//rule:go_default_library", - ], -) - -go_test( - name = "go_default_test", - srcs = [ - "config_test.go", - "fileinfo_test.go", - "generate_test.go", - "resolve_test.go", - ], - data = glob(["testdata/**"]), - embed = [":go_default_library"], - deps = [ - "//config:go_default_library", - "//label:go_default_library", - "//language:go_default_library", - "//merger:go_default_library", - "//repo:go_default_library", - "//resolve:go_default_library", - "//rule:go_default_library", - "//testtools:go_default_library", - "//walk:go_default_library", - "@com_github_bazelbuild_buildtools//build:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/config:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/label:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/language:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/repo:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/resolve:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", ], ) diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/merger/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/merger/BUILD.bazel index 85087079f0d91..89fc0c3ce6b42 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/merger/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/merger/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -6,22 +6,10 @@ go_library( "fix.go", "merger.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/merger", importpath = "github.com/bazelbuild/bazel-gazelle/merger", visibility = ["//visibility:public"], - deps = ["//rule:go_default_library"], -) - -go_test( - name = "go_default_test", - size = "small", - srcs = ["merger_test.go"], - embed = [":go_default_library"], - deps = [ - "//language:go_default_library", - "//language/go:go_default_library", - "//language/proto:go_default_library", - "//rule:go_default_library", - ], + deps = ["//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library"], ) filegroup( diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/pathtools/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/pathtools/BUILD.bazel index acead21fd9695..ab19056bc0442 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/pathtools/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/pathtools/BUILD.bazel @@ -1,18 +1,13 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["path.go"], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/pathtools", importpath = "github.com/bazelbuild/bazel-gazelle/pathtools", visibility = ["//visibility:public"], ) -go_test( - name = "go_default_test", - srcs = ["path_test.go"], - embed = [":go_default_library"], -) - filegroup( name = "all_files", testonly = True, diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/repo/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/repo/BUILD.bazel index 1030a2f8e7b7a..653a7975dff91 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/repo/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/repo/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -6,29 +6,14 @@ go_library( "remote.go", "repo.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/repo", importpath = "github.com/bazelbuild/bazel-gazelle/repo", visibility = ["//visibility:public"], deps = [ - "//label:go_default_library", - "//pathtools:go_default_library", - "//rule:go_default_library", - "@org_golang_x_tools//go/vcs:go_default_library", - ], -) - -go_test( - name = "go_default_test", - srcs = [ - "remote_test.go", - "repo_test.go", - "stubs_test.go", - ], - embed = [":go_default_library"], - deps = [ - "//pathtools:go_default_library", - "//rule:go_default_library", - "//testtools:go_default_library", - "@org_golang_x_tools//go/vcs:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/label:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/pathtools:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", + "//vendor/golang.org/x/tools/go/vcs:go_default_library", ], ) diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/resolve/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/resolve/BUILD.bazel index fda379b19e7de..f7af28493f3b5 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/resolve/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/resolve/BUILD.bazel @@ -6,13 +6,14 @@ go_library( "config.go", "index.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/resolve", importpath = "github.com/bazelbuild/bazel-gazelle/resolve", visibility = ["//visibility:public"], deps = [ - "//config:go_default_library", - "//label:go_default_library", - "//repo:go_default_library", - "//rule:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/config:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/label:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/repo:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", ], ) diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/rule/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/rule/BUILD.bazel index dfa746b381db4..4491dc26a0f87 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/rule/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/rule/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -13,25 +13,16 @@ go_library( "types.go", "value.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/rule", importpath = "github.com/bazelbuild/bazel-gazelle/rule", visibility = ["//visibility:public"], deps = [ - "//label:go_default_library", - "@com_github_bazelbuild_buildtools//build:go_default_library", - "@com_github_bazelbuild_buildtools//tables:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/label:go_default_library", + "//vendor/github.com/bazelbuild/buildtools/build:go_default_library", + "//vendor/github.com/bazelbuild/buildtools/tables:go_default_library", ], ) -go_test( - name = "go_default_test", - srcs = [ - "directives_test.go", - "rule_test.go", - ], - embed = [":go_default_library"], - deps = ["@com_github_bazelbuild_buildtools//build:go_default_library"], -) - filegroup( name = "all_files", testonly = True, diff --git a/vendor/github.com/bazelbuild/bazel-gazelle/walk/BUILD.bazel b/vendor/github.com/bazelbuild/bazel-gazelle/walk/BUILD.bazel index 53b5f3aac55f8..c1a38381b6297 100644 --- a/vendor/github.com/bazelbuild/bazel-gazelle/walk/BUILD.bazel +++ b/vendor/github.com/bazelbuild/bazel-gazelle/walk/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -6,24 +6,14 @@ go_library( "config.go", "walk.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/bazel-gazelle/walk", importpath = "github.com/bazelbuild/bazel-gazelle/walk", visibility = ["//visibility:public"], deps = [ - "//config:go_default_library", - "//flag:go_default_library", - "//pathtools:go_default_library", - "//rule:go_default_library", - ], -) - -go_test( - name = "go_default_test", - srcs = ["walk_test.go"], - embed = [":go_default_library"], - deps = [ - "//config:go_default_library", - "//rule:go_default_library", - "//testtools:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/config:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/flag:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/pathtools:go_default_library", + "//vendor/github.com/bazelbuild/bazel-gazelle/rule:go_default_library", ], ) diff --git a/vendor/github.com/bazelbuild/buildtools/build/BUILD.bazel b/vendor/github.com/bazelbuild/buildtools/build/BUILD.bazel index 945288a8ea1dd..5b81ce7119650 100644 --- a/vendor/github.com/bazelbuild/buildtools/build/BUILD.bazel +++ b/vendor/github.com/bazelbuild/buildtools/build/BUILD.bazel @@ -1,5 +1,5 @@ # gazelle:exclude parse.y.go -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") load(":build_defs.bzl", "go_yacc") go_yacc( @@ -19,33 +19,8 @@ go_library( "syntax.go", "walk.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/buildtools/build", importpath = "github.com/bazelbuild/buildtools/build", visibility = ["//visibility:public"], - deps = ["//tables:go_default_library"], -) - -go_test( - name = "go_default_test", - size = "small", - srcs = [ - "checkfile_test.go", - "lex_test.go", - "parse_test.go", - "print_test.go", - "quote_test.go", - "rule_test.go", - "walk_test.go", - ], - data = glob(["testdata/*"]) + [ - # parse.y.go is checked in to satisfy the Go community - # https://github.com/bazelbuild/buildtools/issues/14 - # this test ensures it doesn't get stale. - "parse.y.baz.go", - "parse.y.go", - ], - embed = [":go_default_library"], - deps = [ - "//tables:go_default_library", - "//testutils", - ], + deps = ["//vendor/github.com/bazelbuild/buildtools/tables:go_default_library"], ) diff --git a/vendor/github.com/bazelbuild/buildtools/tables/BUILD.bazel b/vendor/github.com/bazelbuild/buildtools/tables/BUILD.bazel index 225f1b631162e..605858e6171b4 100644 --- a/vendor/github.com/bazelbuild/buildtools/tables/BUILD.bazel +++ b/vendor/github.com/bazelbuild/buildtools/tables/BUILD.bazel @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -6,14 +6,7 @@ go_library( "jsonparser.go", "tables.go", ], + importmap = "k8s.io/kops/vendor/github.com/bazelbuild/buildtools/tables", importpath = "github.com/bazelbuild/buildtools/tables", visibility = ["//visibility:public"], ) - -go_test( - name = "go_default_test", - size = "small", - srcs = ["jsonparser_test.go"], - data = glob(["testdata/*"]), - embed = [":go_default_library"], -) diff --git a/vendor/k8s.io/kubernetes/pkg/client/metrics/prometheus/BUILD b/vendor/k8s.io/kubernetes/pkg/client/metrics/prometheus/BUILD index 40b04cbf37377..31167cd4c7d28 100644 --- a/vendor/k8s.io/kubernetes/pkg/client/metrics/prometheus/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/client/metrics/prometheus/BUILD @@ -8,10 +8,11 @@ load( go_library( name = "go_default_library", srcs = ["prometheus.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/client/metrics/prometheus", importpath = "k8s.io/kubernetes/pkg/client/metrics/prometheus", deps = [ - "//staging/src/k8s.io/client-go/tools/metrics:go_default_library", "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library", + "//vendor/k8s.io/client-go/tools/metrics:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/BUILD index b197d7cb5890c..57f0389fe5d64 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/BUILD @@ -3,44 +3,6 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", -) - -go_test( - name = "go_default_test", - srcs = [ - "history_test.go", - "rollback_test.go", - "rolling_updater_test.go", - "rollout_status_test.go", - "scale_test.go", - ], - embed = [":go_default_library"], - deps = [ - "//pkg/kubectl/scheme:go_default_library", - "//pkg/kubectl/util:go_default_library", - "//staging/src/k8s.io/api/apps/v1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v1:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library", - "//staging/src/k8s.io/client-go/rest:go_default_library", - "//staging/src/k8s.io/client-go/rest/fake:go_default_library", - "//staging/src/k8s.io/client-go/scale:go_default_library", - "//staging/src/k8s.io/client-go/scale/fake:go_default_library", - "//staging/src/k8s.io/client-go/testing:go_default_library", - ], ) go_library( @@ -56,38 +18,39 @@ go_library( "rollout_status.go", "scale.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl", importpath = "k8s.io/kubernetes/pkg/kubectl", deps = [ - "//pkg/kubectl/apps:go_default_library", - "//pkg/kubectl/describe/versioned:go_default_library", - "//pkg/kubectl/scheme:go_default_library", - "//pkg/kubectl/util:go_default_library", - "//pkg/kubectl/util/deployment:go_default_library", - "//pkg/kubectl/util/podutils:go_default_library", - "//pkg/kubectl/util/slice:go_default_library", - "//staging/src/k8s.io/api/apps/v1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v1:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/api/extensions/v1beta1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/json:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/strategicpatch:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/watch:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes/typed/apps/v1:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library", - "//staging/src/k8s.io/client-go/rest:go_default_library", - "//staging/src/k8s.io/client-go/scale:go_default_library", - "//staging/src/k8s.io/client-go/util/retry:go_default_library", + "//vendor/k8s.io/api/apps/v1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v1:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/api/extensions/v1beta1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/equality:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/meta: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: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/util/intstr:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/json:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/strategicpatch:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/watch:go_default_library", + "//vendor/k8s.io/client-go/kubernetes:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/apps/v1:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library", + "//vendor/k8s.io/client-go/rest:go_default_library", + "//vendor/k8s.io/client-go/scale:go_default_library", + "//vendor/k8s.io/client-go/util/retry:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/apps:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/describe/versioned:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/scheme:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/deployment:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/podutils:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/slice:go_default_library", "//vendor/k8s.io/utils/integer:go_default_library", "//vendor/k8s.io/utils/pointer:go_default_library", ], diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/apps/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/apps/BUILD index f505ddfc921ca..1b0ac4eec0987 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/apps/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/apps/BUILD @@ -3,14 +3,14 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( name = "go_default_library", srcs = ["kind_visitor.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/apps", importpath = "k8s.io/kubernetes/pkg/kubectl/apps", - deps = ["//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library"], + deps = ["//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library"], ) filegroup( @@ -25,18 +25,3 @@ filegroup( srcs = [":package-srcs"], tags = ["automanaged"], ) - -go_test( - name = "go_default_test", - srcs = [ - "apps_suite_test.go", - "kind_visitor_test.go", - ], - embed = [":go_default_library"], - deps = [ - "//vendor/github.com/onsi/ginkgo:go_default_library", - "//vendor/github.com/onsi/ginkgo/config:go_default_library", - "//vendor/github.com/onsi/ginkgo/types:go_default_library", - "//vendor/github.com/onsi/gomega:go_default_library", - ], -) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/BUILD index 514922d2d604c..325cfa22bc43f 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -10,59 +10,38 @@ go_library( "kubectl_match_version.go", "printing.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util", importpath = "k8s.io/kubernetes/pkg/kubectl/cmd/util", visibility = ["//build/visible_to:pkg_kubectl_cmd_util_CONSUMERS"], deps = [ - "//pkg/kubectl/cmd/util/openapi:go_default_library", - "//pkg/kubectl/cmd/util/openapi/validation:go_default_library", - "//pkg/kubectl/scheme:go_default_library", - "//pkg/kubectl/util/templates:go_default_library", - "//pkg/kubectl/validation:go_default_library", - "//pkg/kubectl/version:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/yaml:go_default_library", - "//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", - "//staging/src/k8s.io/cli-runtime/pkg/resource:go_default_library", - "//staging/src/k8s.io/client-go/discovery:go_default_library", - "//staging/src/k8s.io/client-go/dynamic:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes:go_default_library", - "//staging/src/k8s.io/client-go/rest:go_default_library", - "//staging/src/k8s.io/client-go/scale:go_default_library", - "//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library", "//vendor/github.com/evanphx/json-patch:go_default_library", "//vendor/github.com/spf13/cobra:go_default_library", "//vendor/github.com/spf13/pflag:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/yaml:go_default_library", + "//vendor/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", + "//vendor/k8s.io/cli-runtime/pkg/resource:go_default_library", + "//vendor/k8s.io/client-go/discovery:go_default_library", + "//vendor/k8s.io/client-go/dynamic:go_default_library", + "//vendor/k8s.io/client-go/kubernetes:go_default_library", + "//vendor/k8s.io/client-go/rest:go_default_library", + "//vendor/k8s.io/client-go/scale:go_default_library", + "//vendor/k8s.io/client-go/tools/clientcmd:go_default_library", "//vendor/k8s.io/klog:go_default_library", - "//vendor/k8s.io/utils/exec:go_default_library", - ], -) - -go_test( - name = "go_default_test", - srcs = [ - "crdfinder_test.go", - "helpers_test.go", - ], - embed = [":go_default_library"], - deps = [ - "//pkg/kubectl/scheme:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/validation/field:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/scheme:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/templates:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/validation:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/version:go_default_library", "//vendor/k8s.io/utils/exec:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/BUILD index 2d6fda07139e8..65955a428d84c 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/BUILD @@ -1,7 +1,6 @@ load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( @@ -10,45 +9,37 @@ go_library( "editoptions.go", "editor.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor", importpath = "k8s.io/kubernetes/pkg/kubectl/cmd/util/editor", visibility = [ "//build/visible_to:pkg_kubectl_cmd_util_editor_CONSUMERS", ], deps = [ - "//pkg/kubectl:go_default_library", - "//pkg/kubectl/cmd/util:go_default_library", - "//pkg/kubectl/cmd/util/editor/crlf:go_default_library", - "//pkg/kubectl/scheme:go_default_library", - "//pkg/kubectl/util/term:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/mergepatch:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/strategicpatch:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/validation/field:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/yaml:go_default_library", - "//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", - "//staging/src/k8s.io/cli-runtime/pkg/printers:go_default_library", - "//staging/src/k8s.io/cli-runtime/pkg/resource:go_default_library", "//vendor/github.com/evanphx/json-patch:go_default_library", "//vendor/github.com/spf13/cobra:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime: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/util/mergepatch:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/strategicpatch:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/validation/field:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/yaml:go_default_library", + "//vendor/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", + "//vendor/k8s.io/cli-runtime/pkg/printers:go_default_library", + "//vendor/k8s.io/cli-runtime/pkg/resource:go_default_library", "//vendor/k8s.io/klog:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/crlf:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/scheme:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/term:go_default_library", ], ) -go_test( - name = "go_default_test", - srcs = [ - "editoptions_test.go", - "editor_test.go", - ], - embed = [":go_default_library"], -) - filegroup( name = "package-srcs", srcs = glob(["**"]), diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/crlf/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/crlf/BUILD index ebf46c7e20481..ea4c7270a8c18 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/crlf/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/crlf/BUILD @@ -8,6 +8,7 @@ load( go_library( name = "go_default_library", srcs = ["crlf.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/crlf", importpath = "k8s.io/kubernetes/pkg/kubectl/cmd/util/editor/crlf", ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/BUILD index fe1a6cb01bacf..8749a666b912b 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/BUILD @@ -3,7 +3,6 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( @@ -15,40 +14,18 @@ go_library( "openapi.go", "openapi_getter.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi", importpath = "k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi", deps = [ - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/client-go/discovery:go_default_library", "//vendor/github.com/go-openapi/spec:go_default_library", "//vendor/github.com/googleapis/gnostic/OpenAPIv2:go_default_library", "//vendor/gopkg.in/yaml.v2:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + "//vendor/k8s.io/client-go/discovery:go_default_library", "//vendor/k8s.io/kube-openapi/pkg/util/proto:go_default_library", ], ) -go_test( - name = "go_default_test", - size = "small", - srcs = [ - "dryrun_test.go", - "openapi_getter_test.go", - "openapi_suite_test.go", - "openapi_test.go", - ], - data = ["//api/openapi-spec"], - embed = [":go_default_library"], - deps = [ - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//vendor/github.com/googleapis/gnostic/OpenAPIv2:go_default_library", - "//vendor/github.com/onsi/ginkgo:go_default_library", - "//vendor/github.com/onsi/ginkgo/config:go_default_library", - "//vendor/github.com/onsi/ginkgo/types:go_default_library", - "//vendor/github.com/onsi/gomega:go_default_library", - "//vendor/k8s.io/kube-openapi/pkg/util/proto:go_default_library", - "//vendor/k8s.io/kube-openapi/pkg/util/proto/testing:go_default_library", - ], -) - filegroup( name = "package-srcs", srcs = glob(["**"]), diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation/BUILD index 2b1d0326a97e3..130d75e892778 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation/BUILD @@ -3,40 +3,20 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( name = "go_default_library", srcs = ["validation.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation", importpath = "k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi/validation", deps = [ - "//pkg/kubectl/cmd/util/openapi:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/json:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/yaml:go_default_library", - "//vendor/k8s.io/kube-openapi/pkg/util/proto/validation:go_default_library", - ], -) - -go_test( - name = "go_default_test", - srcs = [ - "validation_suite_test.go", - "validation_test.go", - ], - data = ["//api/openapi-spec"], - embed = [":go_default_library"], - deps = [ - "//pkg/kubectl/cmd/util/openapi:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library", - "//vendor/github.com/onsi/ginkgo:go_default_library", - "//vendor/github.com/onsi/ginkgo/config:go_default_library", - "//vendor/github.com/onsi/ginkgo/types:go_default_library", - "//vendor/github.com/onsi/gomega:go_default_library", - "//vendor/k8s.io/kube-openapi/pkg/util/proto/testing:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/json:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/yaml:go_default_library", "//vendor/k8s.io/kube-openapi/pkg/util/proto/validation:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/cmd/util/openapi:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/describe/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/describe/BUILD index c120954a8d2fe..a33cfd098e7b4 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/describe/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/describe/BUILD @@ -3,11 +3,12 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["interface.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/describe", importpath = "k8s.io/kubernetes/pkg/kubectl/describe", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", + "//vendor/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/describe/versioned/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/describe/versioned/BUILD index 814ef60661f68..1b0a1fc092f2e 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/describe/versioned/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/describe/versioned/BUILD @@ -1,55 +1,56 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["describe.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/describe/versioned", importpath = "k8s.io/kubernetes/pkg/kubectl/describe/versioned", visibility = ["//visibility:public"], deps = [ - "//pkg/kubectl/describe:go_default_library", - "//pkg/kubectl/scheme:go_default_library", - "//pkg/kubectl/util/certificate:go_default_library", - "//pkg/kubectl/util/deployment:go_default_library", - "//pkg/kubectl/util/event:go_default_library", - "//pkg/kubectl/util/fieldpath:go_default_library", - "//pkg/kubectl/util/qos:go_default_library", - "//pkg/kubectl/util/rbac:go_default_library", - "//pkg/kubectl/util/resource:go_default_library", - "//pkg/kubectl/util/slice:go_default_library", - "//pkg/kubectl/util/storage:go_default_library", - "//staging/src/k8s.io/api/apps/v1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v2beta2:go_default_library", - "//staging/src/k8s.io/api/batch/v1:go_default_library", - "//staging/src/k8s.io/api/batch/v1beta1:go_default_library", - "//staging/src/k8s.io/api/certificates/v1beta1:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/api/extensions/v1beta1:go_default_library", - "//staging/src/k8s.io/api/networking/v1:go_default_library", - "//staging/src/k8s.io/api/networking/v1beta1:go_default_library", - "//staging/src/k8s.io/api/policy/v1beta1:go_default_library", - "//staging/src/k8s.io/api/rbac/v1:go_default_library", - "//staging/src/k8s.io/api/scheduling/v1:go_default_library", - "//staging/src/k8s.io/api/storage/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/fields:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/duration:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", - "//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", - "//staging/src/k8s.io/client-go/dynamic:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library", - "//staging/src/k8s.io/client-go/rest:go_default_library", - "//staging/src/k8s.io/client-go/tools/reference:go_default_library", "//vendor/github.com/fatih/camelcase:go_default_library", + "//vendor/k8s.io/api/apps/v1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v1:go_default_library", + "//vendor/k8s.io/api/autoscaling/v2beta2: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/certificates/v1beta1:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/api/extensions/v1beta1:go_default_library", + "//vendor/k8s.io/api/networking/v1:go_default_library", + "//vendor/k8s.io/api/networking/v1beta1:go_default_library", + "//vendor/k8s.io/api/policy/v1beta1:go_default_library", + "//vendor/k8s.io/api/rbac/v1:go_default_library", + "//vendor/k8s.io/api/scheduling/v1:go_default_library", + "//vendor/k8s.io/api/storage/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/errors:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/fields: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/util/duration:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", + "//vendor/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library", + "//vendor/k8s.io/client-go/dynamic:go_default_library", + "//vendor/k8s.io/client-go/kubernetes:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library", + "//vendor/k8s.io/client-go/rest:go_default_library", + "//vendor/k8s.io/client-go/tools/reference:go_default_library", "//vendor/k8s.io/klog:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/describe:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/scheme:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/certificate:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/deployment:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/event:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/fieldpath:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/qos:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/rbac:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/resource:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/slice:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/storage:go_default_library", ], ) @@ -66,27 +67,3 @@ filegroup( tags = ["automanaged"], visibility = ["//visibility:public"], ) - -go_test( - name = "go_default_test", - srcs = ["describe_test.go"], - embed = [":go_default_library"], - deps = [ - "//pkg/kubectl/describe:go_default_library", - "//staging/src/k8s.io/api/apps/v1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v2beta2:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/api/networking/v1:go_default_library", - "//staging/src/k8s.io/api/policy/v1beta1:go_default_library", - "//staging/src/k8s.io/api/storage/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library", - "//vendor/k8s.io/utils/pointer:go_default_library", - ], -) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/generated/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/generated/BUILD index 9ab5fd6ccddc8..d0fff4dcc7e2f 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/generated/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/generated/BUILD @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["bindata.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/generated", importpath = "k8s.io/kubernetes/pkg/kubectl/generated", visibility = ["//visibility:public"], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/scheme/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/scheme/BUILD index 876910abcaf90..f9d9eba1f5f59 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/scheme/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/scheme/BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -6,44 +6,45 @@ go_library( "install.go", "scheme.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/scheme", importpath = "k8s.io/kubernetes/pkg/kubectl/scheme", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/api/admission/v1beta1:go_default_library", - "//staging/src/k8s.io/api/admissionregistration/v1beta1:go_default_library", - "//staging/src/k8s.io/api/apps/v1:go_default_library", - "//staging/src/k8s.io/api/apps/v1beta1:go_default_library", - "//staging/src/k8s.io/api/apps/v1beta2:go_default_library", - "//staging/src/k8s.io/api/authentication/v1:go_default_library", - "//staging/src/k8s.io/api/authentication/v1beta1:go_default_library", - "//staging/src/k8s.io/api/authorization/v1:go_default_library", - "//staging/src/k8s.io/api/authorization/v1beta1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v1:go_default_library", - "//staging/src/k8s.io/api/autoscaling/v2beta1:go_default_library", - "//staging/src/k8s.io/api/batch/v1:go_default_library", - "//staging/src/k8s.io/api/batch/v1beta1:go_default_library", - "//staging/src/k8s.io/api/batch/v2alpha1:go_default_library", - "//staging/src/k8s.io/api/certificates/v1beta1:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/api/extensions/v1beta1:go_default_library", - "//staging/src/k8s.io/api/imagepolicy/v1alpha1:go_default_library", - "//staging/src/k8s.io/api/networking/v1:go_default_library", - "//staging/src/k8s.io/api/policy/v1beta1:go_default_library", - "//staging/src/k8s.io/api/rbac/v1:go_default_library", - "//staging/src/k8s.io/api/rbac/v1alpha1:go_default_library", - "//staging/src/k8s.io/api/rbac/v1beta1:go_default_library", - "//staging/src/k8s.io/api/scheduling/v1alpha1:go_default_library", - "//staging/src/k8s.io/api/settings/v1alpha1:go_default_library", - "//staging/src/k8s.io/api/storage/v1:go_default_library", - "//staging/src/k8s.io/api/storage/v1beta1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1beta1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes/scheme:go_default_library", + "//vendor/k8s.io/api/admission/v1beta1:go_default_library", + "//vendor/k8s.io/api/admissionregistration/v1beta1:go_default_library", + "//vendor/k8s.io/api/apps/v1:go_default_library", + "//vendor/k8s.io/api/apps/v1beta1:go_default_library", + "//vendor/k8s.io/api/apps/v1beta2:go_default_library", + "//vendor/k8s.io/api/authentication/v1:go_default_library", + "//vendor/k8s.io/api/authentication/v1beta1:go_default_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/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", + "//vendor/k8s.io/api/certificates/v1beta1:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/api/extensions/v1beta1:go_default_library", + "//vendor/k8s.io/api/imagepolicy/v1alpha1:go_default_library", + "//vendor/k8s.io/api/networking/v1:go_default_library", + "//vendor/k8s.io/api/policy/v1beta1:go_default_library", + "//vendor/k8s.io/api/rbac/v1:go_default_library", + "//vendor/k8s.io/api/rbac/v1alpha1:go_default_library", + "//vendor/k8s.io/api/rbac/v1beta1:go_default_library", + "//vendor/k8s.io/api/scheduling/v1alpha1:go_default_library", + "//vendor/k8s.io/api/settings/v1alpha1:go_default_library", + "//vendor/k8s.io/api/storage/v1:go_default_library", + "//vendor/k8s.io/api/storage/v1beta1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1beta1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/scheme:go_default_library", ], ) @@ -60,17 +61,3 @@ filegroup( tags = ["automanaged"], visibility = ["//visibility:public"], ) - -go_test( - name = "go_default_test", - srcs = ["sparse_test.go"], - embed = [":go_default_library"], - deps = [ - "//staging/src/k8s.io/api/batch/v1:go_default_library", - "//staging/src/k8s.io/api/batch/v1beta1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library", - ], -) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/BUILD index 48d783ade6597..af4466607ab92 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/BUILD @@ -1,7 +1,6 @@ load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( @@ -13,13 +12,14 @@ go_library( "umask_windows.go", "util.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util", importpath = "k8s.io/kubernetes/pkg/kubectl/util", visibility = ["//build/visible_to:pkg_kubectl_util_CONSUMERS"], deps = [ - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library", + "//vendor/k8s.io/api/core/v1: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/util/intstr:go_default_library", ] + select({ "@io_bazel_rules_go//go/platform:android": [ "//vendor/golang.org/x/sys/unix:go_default_library", @@ -33,6 +33,9 @@ go_library( "@io_bazel_rules_go//go/platform:freebsd": [ "//vendor/golang.org/x/sys/unix:go_default_library", ], + "@io_bazel_rules_go//go/platform:ios": [ + "//vendor/golang.org/x/sys/unix:go_default_library", + ], "@io_bazel_rules_go//go/platform:linux": [ "//vendor/golang.org/x/sys/unix:go_default_library", ], @@ -87,17 +90,3 @@ filegroup( tags = ["automanaged"], visibility = ["//build/visible_to:pkg_kubectl_util_CONSUMERS"], ) - -go_test( - name = "go_default_test", - srcs = [ - "pod_port_test.go", - "service_port_test.go", - "util_test.go", - ], - embed = [":go_default_library"], - deps = [ - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library", - ], -) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/certificate/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/certificate/BUILD index cac97d417052f..2e006328ef5c1 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/certificate/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/certificate/BUILD @@ -3,9 +3,10 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["certificate.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/certificate", importpath = "k8s.io/kubernetes/pkg/kubectl/util/certificate", visibility = ["//visibility:public"], - deps = ["//staging/src/k8s.io/api/certificates/v1beta1:go_default_library"], + deps = ["//vendor/k8s.io/api/certificates/v1beta1:go_default_library"], ) filegroup( diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/deployment/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/deployment/BUILD index 5fffa4803e11f..d7a3d42c864d1 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/deployment/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/deployment/BUILD @@ -3,17 +3,18 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["deployment.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/deployment", importpath = "k8s.io/kubernetes/pkg/kubectl/util/deployment", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/api/apps/v1:go_default_library", - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/equality:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/intstr:go_default_library", - "//staging/src/k8s.io/client-go/kubernetes/typed/apps/v1:go_default_library", + "//vendor/k8s.io/api/apps/v1:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/equality:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/meta: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/util/intstr:go_default_library", + "//vendor/k8s.io/client-go/kubernetes/typed/apps/v1:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/event/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/event/BUILD index 1c0fe6300d363..b63710617ad66 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/event/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/event/BUILD @@ -3,24 +3,14 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( name = "go_default_library", srcs = ["sorted_event_list.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/event", importpath = "k8s.io/kubernetes/pkg/kubectl/util/event", - deps = ["//staging/src/k8s.io/api/core/v1:go_default_library"], -) - -go_test( - name = "go_default_test", - srcs = ["sorted_event_list_test.go"], - embed = [":go_default_library"], - deps = [ - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", - ], + deps = ["//vendor/k8s.io/api/core/v1:go_default_library"], ) filegroup( diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/fieldpath/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/fieldpath/BUILD index 188a07d00d420..df8089c7f061d 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/fieldpath/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/fieldpath/BUILD @@ -3,12 +3,13 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["fieldpath.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/fieldpath", importpath = "k8s.io/kubernetes/pkg/kubectl/util/fieldpath", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/validation:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/validation:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/i18n/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/i18n/BUILD index 7cfcf07abed38..5304498fc7859 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/i18n/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/i18n/BUILD @@ -3,26 +3,20 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( name = "go_default_library", srcs = ["i18n.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/i18n", importpath = "k8s.io/kubernetes/pkg/kubectl/util/i18n", deps = [ - "//pkg/kubectl/generated:go_default_library", "//vendor/github.com/chai2010/gettext-go/gettext:go_default_library", "//vendor/k8s.io/klog:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/generated:go_default_library", ], ) -go_test( - name = "go_default_test", - srcs = ["i18n_test.go"], - embed = [":go_default_library"], -) - filegroup( name = "package-srcs", srcs = glob(["**"]), diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/interrupt/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/interrupt/BUILD index 8d2d54edb8c20..ba0da1d1aba73 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/interrupt/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/interrupt/BUILD @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["interrupt.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/interrupt", importpath = "k8s.io/kubernetes/pkg/kubectl/util/interrupt", visibility = ["//visibility:public"], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/podutils/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/podutils/BUILD index ec4c53d899dba..0183aeba0ea1e 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/podutils/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/podutils/BUILD @@ -3,11 +3,12 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["podutils.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/podutils", importpath = "k8s.io/kubernetes/pkg/kubectl/util/podutils", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/utils/integer:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/qos/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/qos/BUILD index bed95210fc25f..2d45670cfee1b 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/qos/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/qos/BUILD @@ -3,12 +3,13 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["qos.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/qos", importpath = "k8s.io/kubernetes/pkg/kubectl/util/qos", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/rbac/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/rbac/BUILD index 6a398bc854c41..a63820c7656f7 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/rbac/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/rbac/BUILD @@ -3,9 +3,10 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["rbac.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/rbac", importpath = "k8s.io/kubernetes/pkg/kubectl/util/rbac", visibility = ["//visibility:public"], - deps = ["//staging/src/k8s.io/api/rbac/v1:go_default_library"], + deps = ["//vendor/k8s.io/api/rbac/v1:go_default_library"], ) filegroup( diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/resource/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/resource/BUILD index bbbe532b7108d..851cd53f3fe0d 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/resource/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/resource/BUILD @@ -3,12 +3,13 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["resource.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/resource", importpath = "k8s.io/kubernetes/pkg/kubectl/util/resource", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/api/resource:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/slice/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/slice/BUILD index c786caaf9cfd7..e7b8e39ee5885 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/slice/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/slice/BUILD @@ -3,21 +3,15 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( name = "go_default_library", srcs = ["slice.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/slice", importpath = "k8s.io/kubernetes/pkg/kubectl/util/slice", ) -go_test( - name = "go_default_test", - srcs = ["slice_test.go"], - embed = [":go_default_library"], -) - filegroup( name = "package-srcs", srcs = glob(["**"]), diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/storage/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/storage/BUILD index cd1ed24f70046..eeac18bb5f044 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/storage/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/storage/BUILD @@ -3,11 +3,12 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", srcs = ["storage.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/storage", importpath = "k8s.io/kubernetes/pkg/kubectl/util/storage", visibility = ["//visibility:public"], deps = [ - "//staging/src/k8s.io/api/core/v1:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", + "//vendor/k8s.io/api/core/v1:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/templates/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/templates/BUILD index d72a5abcb19b4..32d03d8d3b7c4 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/templates/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/templates/BUILD @@ -12,16 +12,17 @@ go_library( "templater.go", "templates.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/templates", importpath = "k8s.io/kubernetes/pkg/kubectl/util/templates", visibility = [ "//build/visible_to:pkg_kubectl_util_templates_CONSUMERS", ], deps = [ - "//pkg/kubectl/util/term:go_default_library", "//vendor/github.com/MakeNowJust/heredoc:go_default_library", "//vendor/github.com/russross/blackfriday:go_default_library", "//vendor/github.com/spf13/cobra:go_default_library", "//vendor/github.com/spf13/pflag:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/term:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/util/term/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/util/term/BUILD index 204c47f3c9154..7aa1c0f155c25 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/util/term/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/util/term/BUILD @@ -3,7 +3,6 @@ package(default_visibility = ["//visibility:public"]) load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) go_library( @@ -15,13 +14,14 @@ go_library( "term.go", "term_writer.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/util/term", importpath = "k8s.io/kubernetes/pkg/kubectl/util/term", deps = [ - "//pkg/kubectl/util/interrupt:go_default_library", - "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library", - "//staging/src/k8s.io/client-go/tools/remotecommand:go_default_library", "//vendor/github.com/docker/docker/pkg/term:go_default_library", "//vendor/github.com/mitchellh/go-wordwrap:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library", + "//vendor/k8s.io/client-go/tools/remotecommand:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/kubectl/util/interrupt:go_default_library", ] + select({ "@io_bazel_rules_go//go/platform:android": [ "//vendor/golang.org/x/sys/unix:go_default_library", @@ -35,6 +35,9 @@ go_library( "@io_bazel_rules_go//go/platform:freebsd": [ "//vendor/golang.org/x/sys/unix:go_default_library", ], + "@io_bazel_rules_go//go/platform:ios": [ + "//vendor/golang.org/x/sys/unix:go_default_library", + ], "@io_bazel_rules_go//go/platform:linux": [ "//vendor/golang.org/x/sys/unix:go_default_library", ], @@ -57,12 +60,6 @@ go_library( }), ) -go_test( - name = "go_default_test", - srcs = ["term_writer_test.go"], - embed = [":go_default_library"], -) - filegroup( name = "package-srcs", srcs = glob(["**"]), diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/validation/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/validation/BUILD index 76d0bbb697fe8..91833b9fb0fcb 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/validation/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/validation/BUILD @@ -1,7 +1,6 @@ load( "@io_bazel_rules_go//go:def.bzl", "go_library", - "go_test", ) exports_files( @@ -11,23 +10,15 @@ exports_files( visibility = ["//build/visible_to:COMMON_testing"], ) -go_test( - name = "go_default_test", - srcs = ["schema_test.go"], - data = [ - ":testdata", - ], - embed = [":go_default_library"], -) - go_library( name = "go_default_library", srcs = ["schema.go"], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/validation", importpath = "k8s.io/kubernetes/pkg/kubectl/validation", visibility = ["//build/visible_to:pkg_kubectl_validation_CONSUMERS"], deps = [ - "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library", "//vendor/github.com/exponent-io/jsonpath:go_default_library", + "//vendor/k8s.io/apimachinery/pkg/util/errors:go_default_library", ], ) diff --git a/vendor/k8s.io/kubernetes/pkg/kubectl/version/BUILD b/vendor/k8s.io/kubernetes/pkg/kubectl/version/BUILD index 0bcba99002f54..4d2bf65067e3e 100644 --- a/vendor/k8s.io/kubernetes/pkg/kubectl/version/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/kubectl/version/BUILD @@ -6,9 +6,10 @@ go_library( "base.go", "version.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/kubectl/version", importpath = "k8s.io/kubernetes/pkg/kubectl/version", visibility = ["//visibility:public"], - deps = ["//staging/src/k8s.io/apimachinery/pkg/version:go_default_library"], + deps = ["//vendor/k8s.io/apimachinery/pkg/version:go_default_library"], ) filegroup( diff --git a/vendor/k8s.io/kubernetes/pkg/util/mount/BUILD b/vendor/k8s.io/kubernetes/pkg/util/mount/BUILD index f4e40b669f96c..37130b6e66f69 100644 --- a/vendor/k8s.io/kubernetes/pkg/util/mount/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/util/mount/BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -14,12 +14,18 @@ go_library( "mount_unsupported.go", "mount_windows.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/util/mount", importpath = "k8s.io/kubernetes/pkg/util/mount", visibility = ["//visibility:public"], deps = [ "//vendor/k8s.io/klog:go_default_library", "//vendor/k8s.io/utils/exec:go_default_library", ] + select({ + "@io_bazel_rules_go//go/platform:android": [ + "//vendor/golang.org/x/sys/unix:go_default_library", + "//vendor/k8s.io/utils/io:go_default_library", + "//vendor/k8s.io/utils/path:go_default_library", + ], "@io_bazel_rules_go//go/platform:linux": [ "//vendor/golang.org/x/sys/unix:go_default_library", "//vendor/k8s.io/utils/io:go_default_library", @@ -33,29 +39,6 @@ go_library( }), ) -go_test( - name = "go_default_test", - srcs = [ - "mount_helper_test.go", - "mount_linux_test.go", - "mount_test.go", - "mount_windows_test.go", - "safe_format_and_mount_test.go", - ], - embed = [":go_default_library"], - deps = [ - "//vendor/k8s.io/utils/exec/testing:go_default_library", - ] + select({ - "@io_bazel_rules_go//go/platform:linux": [ - "//vendor/k8s.io/utils/exec:go_default_library", - ], - "@io_bazel_rules_go//go/platform:windows": [ - "//vendor/github.com/stretchr/testify/assert:go_default_library", - ], - "//conditions:default": [], - }), -) - filegroup( name = "package-srcs", srcs = glob(["**"]), diff --git a/vendor/k8s.io/kubernetes/pkg/volume/util/nsenter/BUILD b/vendor/k8s.io/kubernetes/pkg/volume/util/nsenter/BUILD index ab5b6aa7a8b6f..d3cfb00876af9 100644 --- a/vendor/k8s.io/kubernetes/pkg/volume/util/nsenter/BUILD +++ b/vendor/k8s.io/kubernetes/pkg/volume/util/nsenter/BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") +load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "go_default_library", @@ -6,65 +6,60 @@ go_library( "nsenter_mount.go", "nsenter_mount_unsupported.go", ], + importmap = "k8s.io/kops/vendor/k8s.io/kubernetes/pkg/volume/util/nsenter", importpath = "k8s.io/kubernetes/pkg/volume/util/nsenter", visibility = ["//visibility:public"], deps = select({ "@io_bazel_rules_go//go/platform:android": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/klog:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", + "//vendor/k8s.io/utils/path:go_default_library", ], "@io_bazel_rules_go//go/platform:darwin": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:dragonfly": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:freebsd": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", + "//vendor/k8s.io/utils/nsenter:go_default_library", + ], + "@io_bazel_rules_go//go/platform:ios": [ + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:linux": [ - "//pkg/util/mount:go_default_library", "//vendor/k8s.io/klog:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", "//vendor/k8s.io/utils/path:go_default_library", ], "@io_bazel_rules_go//go/platform:nacl": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:netbsd": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:openbsd": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:plan9": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:solaris": [ - "//pkg/util/mount:go_default_library", + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "@io_bazel_rules_go//go/platform:windows": [ - "//pkg/util/mount:go_default_library", - "//vendor/k8s.io/utils/nsenter:go_default_library", - ], - "//conditions:default": [], - }), -) - -go_test( - name = "go_default_test", - srcs = ["nsenter_mount_test.go"], - embed = [":go_default_library"], - deps = select({ - "@io_bazel_rules_go//go/platform:linux": [ + "//vendor/k8s.io/kubernetes/pkg/util/mount:go_default_library", "//vendor/k8s.io/utils/nsenter:go_default_library", ], "//conditions:default": [],