Skip to content

Commit

Permalink
Update bazel build to dockerize cloud-controller-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ixdy authored and jayunit100 committed May 7, 2017
1 parent 86881e7 commit b42ba72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/BUILD
Expand Up @@ -44,7 +44,13 @@ docker_build(
],
)

# This list should roughly match kube::build::get_docker_wrapped_binaries()
# in build/common.sh.
DOCKERIZED_BINARIES = {
"cloud-controller-manager": {
"base": ":busybox",
"target": "//cmd/cloud-controller-manager:cloud-controller-manager",
},
"kube-apiserver": {
"base": ":busybox",
"target": "//cmd/kube-apiserver:kube-apiserver",
Expand Down
2 changes: 2 additions & 0 deletions build/common.sh
Expand Up @@ -86,6 +86,8 @@ readonly KUBE_CONTAINER_RSYNC_PORT=8730
# $1 - server architecture
kube::build::get_docker_wrapped_binaries() {
debian_iptables_version=v7
### If you change any of these lists, please also update DOCKERIZED_BINARIES
### in build/BUILD.
case $1 in
"amd64")
local targets=(
Expand Down
7 changes: 7 additions & 0 deletions build/debs/BUILD
Expand Up @@ -12,6 +12,7 @@ load("@io_kubernetes_build//defs:build.bzl", "release_filegroup")
release_filegroup(
name = "debs",
srcs = [
":cloud-controller-manager.deb",
":kubeadm.deb",
":kubectl.deb",
":kubelet.deb",
Expand All @@ -29,6 +30,7 @@ release_filegroup(
},
],
) for binary in [
"cloud-controller-manager",
"kubectl",
"kube-apiserver",
"kube-controller-manager",
Expand Down Expand Up @@ -84,6 +86,11 @@ pkg_tar(
deps = ["@kubernetes_cni//file"],
)

k8s_deb(
name = "cloud-controller-manager",
description = "Kubernetes Cloud Controller Manager",
)

k8s_deb(
name = "kubectl",
description = """Kubernetes Command Line Tool
Expand Down

0 comments on commit b42ba72

Please sign in to comment.