Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gazelle updates with new bazel version #3776

Merged
merged 1 commit into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 2 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ load("@io_bazel_rules_go//go:def.bzl", "gazelle", "go_library", "go_prefix")
go_prefix("k8s.io/kops")

gazelle(
name = "gazelle",
command = "fix",
external = "vendored",
name = "gazelle",
prefix = "k8s.io/kops",
)

Expand All @@ -17,4 +17,5 @@ go_library(
"doc.go",
"version.go",
],
importpath = "k8s.io/kops",
)
2 changes: 2 additions & 0 deletions channels/cmd/channels/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "k8s.io/kops/channels/cmd/channels",
visibility = ["//visibility:private"],
deps = ["//channels/pkg/cmd:go_default_library"],
)

go_binary(
name = "channels",
importpath = "k8s.io/kops/channels/cmd/channels",
library = ":go_default_library",
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions channels/pkg/api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["channel.go"],
importpath = "k8s.io/kops/channels/pkg/api",
visibility = ["//visibility:public"],
deps = [
"//vendor/k8s.io/api/core/v1:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions channels/pkg/channels/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ go_library(
"apply.go",
"channel_version.go",
],
importpath = "k8s.io/kops/channels/pkg/channels",
visibility = ["//visibility:public"],
deps = [
"//channels/pkg/api:go_default_library",
Expand All @@ -26,6 +27,7 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["addons_test.go"],
importpath = "k8s.io/kops/channels/pkg/channels",
library = ":go_default_library",
deps = [
"//channels/pkg/api:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions channels/pkg/cmd/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ go_library(
"get_addons.go",
"root.go",
],
importpath = "k8s.io/kops/channels/pkg/cmd",
visibility = ["//visibility:public"],
deps = [
"//channels/pkg/channels:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions cloudmock/aws/mockautoscaling/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ go_library(
"group.go",
"unimplemented.go",
],
importpath = "k8s.io/kops/cloudmock/aws/mockautoscaling",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/aws/aws-sdk-go/aws:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions cloudmock/aws/mockec2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ go_library(
"volumes.go",
"vpcs.go",
],
importpath = "k8s.io/kops/cloudmock/aws/mockec2",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/aws/aws-sdk-go/aws:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions cloudmock/aws/mockroute53/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ go_library(
"unimplemented.go",
"zones.go",
],
importpath = "k8s.io/kops/cloudmock/aws/mockroute53",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/aws/aws-sdk-go/aws:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions cmd/kops-server/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "k8s.io/kops/cmd/kops-server",
visibility = ["//visibility:private"],
deps = [
"//pkg/apiserver/cmd/server:go_default_library",
Expand All @@ -13,6 +14,7 @@ go_library(

go_binary(
name = "kops-server",
importpath = "k8s.io/kops/cmd/kops-server",
library = ":go_default_library",
visibility = ["//visibility:public"],
)
3 changes: 3 additions & 0 deletions cmd/kops/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ go_library(
"validate_cluster.go",
"version.go",
],
importpath = "k8s.io/kops/cmd/kops",
visibility = ["//visibility:private"],
deps = [
"//:go_default_library",
Expand Down Expand Up @@ -115,6 +116,7 @@ go_library(

go_binary(
name = "kops",
importpath = "k8s.io/kops/cmd/kops",
library = ":go_default_library",
visibility = ["//visibility:public"],
x_defs = {
Expand All @@ -137,6 +139,7 @@ go_test(
"//tests/integration/create_cluster:exported_testdata", # keep
"//tests/integration/update_cluster:exported_testdata", # keep
],
importpath = "k8s.io/kops/cmd/kops",
library = ":go_default_library",
deps = [
"//cmd/kops/util:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions cmd/kops/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["factory.go"],
importpath = "k8s.io/kops/cmd/kops/util",
visibility = ["//visibility:public"],
deps = [
"//pkg/acls/gce:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions cmd/nodeup/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "k8s.io/kops/cmd/nodeup",
visibility = ["//visibility:private"],
deps = [
"//:go_default_library",
Expand All @@ -15,6 +16,7 @@ go_library(

go_binary(
name = "nodeup",
importpath = "k8s.io/kops/cmd/nodeup",
library = ":go_default_library",
static = "on",
visibility = ["//visibility:public"],
Expand Down
2 changes: 2 additions & 0 deletions dns-controller/cmd/dns-controller/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "k8s.io/kops/dns-controller/cmd/dns-controller",
visibility = ["//visibility:private"],
deps = [
"//dns-controller/pkg/dns:go_default_library",
Expand All @@ -24,6 +25,7 @@ go_library(

go_binary(
name = "dns-controller",
importpath = "k8s.io/kops/dns-controller/cmd/dns-controller",
library = ":go_default_library",
visibility = ["//visibility:public"],
)
2 changes: 2 additions & 0 deletions dns-controller/pkg/dns/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ go_library(
"record.go",
"zonespec.go",
],
importpath = "k8s.io/kops/dns-controller/pkg/dns",
visibility = ["//visibility:public"],
deps = [
"//dns-controller/pkg/util:go_default_library",
Expand All @@ -25,5 +26,6 @@ go_test(
"record_test.go",
"zonespec_test.go",
],
importpath = "k8s.io/kops/dns-controller/pkg/dns",
library = ":go_default_library",
)
2 changes: 2 additions & 0 deletions dns-controller/pkg/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ go_library(
"equality.go",
"stoppable.go",
],
importpath = "k8s.io/kops/dns-controller/pkg/util",
visibility = ["//visibility:public"],
deps = ["//vendor/github.com/golang/glog:go_default_library"],
)

go_test(
name = "go_default_test",
srcs = ["equality_test.go"],
importpath = "k8s.io/kops/dns-controller/pkg/util",
library = ":go_default_library",
)
1 change: 1 addition & 0 deletions dns-controller/pkg/watchers/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ go_library(
"pod.go",
"service.go",
],
importpath = "k8s.io/kops/dns-controller/pkg/watchers",
visibility = ["//visibility:public"],
deps = [
"//dns-controller/pkg/dns:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions examples/kops-api-example/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ go_library(
"main.go",
"up.go",
],
importpath = "k8s.io/kops/examples/kops-api-example",
visibility = ["//visibility:private"],
deps = [
"//pkg/apis/kops:go_default_library",
Expand All @@ -20,6 +21,7 @@ go_library(

go_binary(
name = "kops-api-example",
importpath = "k8s.io/kops/examples/kops-api-example",
library = ":go_default_library",
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions federation/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ go_library(
"federation_configuration.go",
"federation_namespace.go",
],
importpath = "k8s.io/kops/federation",
visibility = ["//visibility:public"],
deps = [
"//federation/model:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions federation/model/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["bindata.go"],
importpath = "k8s.io/kops/federation/model",
visibility = ["//visibility:public"],
)

Expand Down
1 change: 1 addition & 0 deletions federation/targets/kubernetestarget/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["kubernetestarget.go"],
importpath = "k8s.io/kops/federation/targets/kubernetestarget",
visibility = ["//visibility:public"],
deps = [
"//pkg/apis/kops:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions federation/tasks/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["kubernetesresource.go"],
importpath = "k8s.io/kops/federation/tasks",
visibility = ["//visibility:public"],
deps = [
"//federation/targets/kubernetestarget:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions nodeup/pkg/bootstrap/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["install.go"],
importpath = "k8s.io/kops/nodeup/pkg/bootstrap",
visibility = ["//visibility:public"],
deps = [
"//nodeup/pkg/distros:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions nodeup/pkg/distros/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
"distribution.go",
"identify.go",
],
importpath = "k8s.io/kops/nodeup/pkg/distros",
visibility = ["//visibility:public"],
deps = [
"//upup/pkg/fi/nodeup/tags:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions nodeup/pkg/model/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ go_library(
"secrets.go",
"sysctls.go",
],
importpath = "k8s.io/kops/nodeup/pkg/model",
visibility = ["//visibility:public"],
deps = [
"//:go_default_library",
Expand Down Expand Up @@ -62,6 +63,7 @@ go_test(
"kubelet_test.go",
],
data = glob(["tests/**"]), #keep
importpath = "k8s.io/kops/nodeup/pkg/model",
library = ":go_default_library",
deps = [
"//nodeup/pkg/distros:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions nodeup/pkg/model/resources/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["docker.go"],
importpath = "k8s.io/kops/nodeup/pkg/model/resources",
visibility = ["//visibility:public"],
)
1 change: 1 addition & 0 deletions pkg/acls/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
"interface.go",
"plugins.go",
],
importpath = "k8s.io/kops/pkg/acls",
visibility = ["//visibility:public"],
deps = [
"//pkg/apis/kops:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions pkg/acls/gce/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["storage.go"],
importpath = "k8s.io/kops/pkg/acls/gce",
visibility = ["//visibility:public"],
deps = [
"//pkg/acls:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ go_library(
"topology.go",
"zz_generated.deepcopy.go",
],
importpath = "k8s.io/kops/pkg/apis/kops",
visibility = ["//visibility:public"],
deps = [
"//pkg/apis/kops/util:go_default_library",
Expand All @@ -41,6 +42,7 @@ go_test(
"parse_test.go",
"semver_test.go",
],
importpath = "k8s.io/kops/pkg/apis/kops",
library = ":go_default_library",
deps = ["//vendor/github.com/blang/semver:go_default_library"],
)
2 changes: 2 additions & 0 deletions pkg/apis/kops/install/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["install.go"],
importpath = "k8s.io/kops/pkg/apis/kops/install",
visibility = ["//visibility:public"],
deps = [
"//pkg/apis/kops:go_default_library",
Expand All @@ -19,5 +20,6 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["roundtrip_test.go"],
importpath = "k8s.io/kops/pkg/apis/kops/install",
library = ":go_default_library",
)
2 changes: 2 additions & 0 deletions pkg/apis/kops/model/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = ["utils.go"],
importpath = "k8s.io/kops/pkg/apis/kops/model",
visibility = ["//visibility:public"],
deps = [
"//pkg/apis/kops:go_default_library",
Expand All @@ -13,6 +14,7 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["utils_test.go"],
importpath = "k8s.io/kops/pkg/apis/kops/model",
library = ":go_default_library",
deps = ["//pkg/apis/kops:go_default_library"],
)
1 change: 1 addition & 0 deletions pkg/apis/kops/registry/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ go_library(
"registry.go",
"statestore.go",
],
importpath = "k8s.io/kops/pkg/apis/kops/registry",
visibility = ["//visibility:public"],
deps = [
"//pkg/acls:go_default_library",
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/util/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ go_library(
"labels.go",
"versions.go",
],
importpath = "k8s.io/kops/pkg/apis/kops/util",
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/blang/semver:go_default_library",
Expand All @@ -17,5 +18,6 @@ go_library(
go_test(
name = "go_default_test",
srcs = ["versions_test.go"],
importpath = "k8s.io/kops/pkg/apis/kops/util",
library = ":go_default_library",
)
1 change: 1 addition & 0 deletions pkg/apis/kops/v1alpha1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go_library(
"zz_generated.deepcopy.go",
"zz_generated.defaults.go",
],
importpath = "k8s.io/kops/pkg/apis/kops/v1alpha1",
visibility = ["//visibility:public"],
deps = [
"//pkg/apis/kops:go_default_library",
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/kops/v1alpha2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go_library(
"zz_generated.deepcopy.go",
"zz_generated.defaults.go",
],
importpath = "k8s.io/kops/pkg/apis/kops/v1alpha2",
visibility = ["//visibility:public"],
deps = [
"//pkg/apis/kops:go_default_library",
Expand Down
Loading