ceph-csi/vendor/k8s.io/kubernetes/build/rpms/BUILD

93 lines
1.9 KiB
Python
Raw Normal View History

2018-01-09 18:57:14 +00:00
package(default_visibility = ["//visibility:public"])
load("@bazel_tools//tools/build_defs/pkg:rpm.bzl", "pkg_rpm")
2018-07-18 14:47:22 +00:00
load("//build:workspace.bzl", "CRI_TOOLS_VERSION")
filegroup(
name = "rpms",
srcs = [
":cri-tools",
":kubeadm",
":kubectl",
":kubelet",
":kubernetes-cni",
],
tags = ["manual"],
visibility = ["//visibility:public"],
)
2018-01-09 18:57:14 +00:00
pkg_rpm(
name = "kubectl",
architecture = "x86_64",
changelog = "//:CHANGELOG.md",
data = [
"//cmd/kubectl",
],
spec_file = "kubectl.spec",
2018-07-18 14:47:22 +00:00
tags = ["manual"],
2018-01-09 18:57:14 +00:00
version_file = "//build:os_package_version",
)
pkg_rpm(
name = "kubelet",
architecture = "x86_64",
changelog = "//:CHANGELOG.md",
data = [
"kubelet.service",
"//cmd/kubelet",
],
spec_file = "kubelet.spec",
2018-07-18 14:47:22 +00:00
tags = ["manual"],
2018-01-09 18:57:14 +00:00
version_file = "//build:os_package_version",
)
pkg_rpm(
name = "kubeadm",
architecture = "x86_64",
changelog = "//:CHANGELOG.md",
data = [
"10-kubeadm.conf",
2018-07-18 14:47:22 +00:00
"kubelet.env",
2018-01-09 18:57:14 +00:00
"//cmd/kubeadm",
],
spec_file = "kubeadm.spec",
2018-07-18 14:47:22 +00:00
tags = ["manual"],
2018-01-09 18:57:14 +00:00
version_file = "//build:os_package_version",
)
pkg_rpm(
name = "kubernetes-cni",
architecture = "x86_64",
changelog = "//:CHANGELOG.md",
data = [
"@kubernetes_cni//file",
],
spec_file = "kubernetes-cni.spec",
2018-07-18 14:47:22 +00:00
tags = ["manual"],
2018-01-09 18:57:14 +00:00
version_file = "//build:cni_package_version",
)
2018-07-18 14:47:22 +00:00
pkg_rpm(
name = "cri-tools",
architecture = "x86_64",
data = [
"@cri_tools//file",
],
spec_file = "cri-tools.spec",
tags = ["manual"],
2018-11-26 18:23:56 +00:00
version = CRI_TOOLS_VERSION,
2018-07-18 14:47:22 +00:00
)
2018-01-09 18:57:14 +00:00
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
)