mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-25 14:30:22 +00:00
79 lines
2.9 KiB
Python
79 lines
2.9 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"metrics.go",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:windows_amd64": [
|
|
"proxier.go",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
importpath = "k8s.io/kubernetes/pkg/proxy/winkernel",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:windows_amd64": [
|
|
"//pkg/api/service:go_default_library",
|
|
"//pkg/apis/core:go_default_library",
|
|
"//pkg/apis/core/helper:go_default_library",
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy:go_default_library",
|
|
"//pkg/proxy/healthcheck:go_default_library",
|
|
"//pkg/util/async:go_default_library",
|
|
"//vendor/github.com/Microsoft/hcsshim:go_default_library",
|
|
"//vendor/github.com/davecgh/go-spew/spew:go_default_library",
|
|
"//vendor/github.com/golang/glog:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/record:go_default_library",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = select({
|
|
"@io_bazel_rules_go//go/platform:windows_amd64": [
|
|
"proxier_test.go",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
importpath = "k8s.io/kubernetes/pkg/proxy/winkernel",
|
|
library = ":go_default_library",
|
|
deps = select({
|
|
"@io_bazel_rules_go//go/platform:windows_amd64": [
|
|
"//pkg/apis/core:go_default_library",
|
|
"//pkg/proxy:go_default_library",
|
|
"//pkg/util/async:go_default_library",
|
|
"//vendor/github.com/davecgh/go-spew/spew:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1: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/sets:go_default_library",
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
"//vendor/k8s.io/utils/exec/testing:go_default_library",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|