
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Introduce GCE-specific addons directory **What this PR does / why we need it**: GCE & GKE currently rely on the cluster bringup defined in the `cluster/gce` directory, but there isn't a good way of deploying GCE specific manifests. Currently the 2 approaches are, put it in `/cluster/addons`, which implies it should be generally useful (not GCE specific), or it is synthesized by one of the bash scripts in `cluster/gce`. This PR introduces a straightforward way to have GCE-specific manifests deployed for GCE & GKE, without the need to pollute the general addon space. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #53032 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
80 lines
1.8 KiB
Python
80 lines
1.8 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load("@io_bazel//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//cluster/addons:all-srcs",
|
|
"//cluster/gce:all-srcs",
|
|
"//cluster/images/etcd-version-monitor:all-srcs",
|
|
"//cluster/images/etcd/attachlease:all-srcs",
|
|
"//cluster/images/etcd/rollback:all-srcs",
|
|
"//cluster/images/hyperkube:all-srcs",
|
|
"//cluster/images/kubemark:all-srcs",
|
|
"//cluster/lib:all-srcs",
|
|
"//cluster/saltbase:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
)
|
|
|
|
# All of the manifests that are expected to be in a "gci-trusty"
|
|
# subdir of the manifests tarball.
|
|
pkg_tar(
|
|
name = "_manifests-gci-trusty",
|
|
package_dir = "gci-trusty",
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
"//cluster/addons",
|
|
"//cluster/gce:gci-trusty-manifests",
|
|
"//cluster/gce/addons",
|
|
"//cluster/saltbase:gci-trusty-salt-manifests",
|
|
],
|
|
)
|
|
|
|
pkg_tar(
|
|
name = "manifests",
|
|
mode = "0644",
|
|
package_dir = "kubernetes",
|
|
deps = [
|
|
":_manifests-gci-trusty",
|
|
"//cluster/saltbase:salt-manifests",
|
|
],
|
|
)
|
|
|
|
# These tests just verify that bash can interpret the file.
|
|
sh_test(
|
|
name = "common_test",
|
|
srcs = ["common.sh"],
|
|
deps = [
|
|
"//cluster/lib",
|
|
"//hack/lib",
|
|
],
|
|
)
|
|
|
|
sh_test(
|
|
name = "clientbin_test",
|
|
srcs = ["clientbin.sh"],
|
|
deps = [
|
|
"//cluster/lib",
|
|
"//hack/lib",
|
|
],
|
|
)
|
|
|
|
sh_test(
|
|
name = "kube-util_test",
|
|
srcs = ["kube-util.sh"],
|
|
deps = [
|
|
"//cluster/lib",
|
|
"//hack/lib",
|
|
],
|
|
)
|