Merge pull request #62436 from ixdy/kazelcfg-ignore-third_party-etcd

Automatic merge from submit-queue (batch tested with PRs 62436, 62499, 62664, 62685, 62660). 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>.

kazel: skip third_party/etcd.*

**What this PR does / why we need it**: fixes the issue encountered in https://github.com/kubernetes/kubernetes/pull/62151#discussion_r179322174.

Basically, we git ignore anything under `third_party/etcd.*`, but if a `BUILD` file ends up in there somehow, it'll confuse kazel and generate invalid entries in top-level `BUILD` files that we do check in. We can avoid this issue by instructing kazel to ignore these directories.

**Release note**:

```release-note
NONE
```

/assign @mikedanese @thockin @BenTheElder
pull/8/head
Kubernetes Submit Queue 2018-04-17 17:31:10 -07:00 committed by GitHub
commit 1ac21b75c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -1,7 +1,8 @@
{
"GoPrefix": "k8s.io/kubernetes",
"SkippedPaths": [
"^_.*"
"^_.*",
"^third_party/etcd.*"
],
"AddSourcesRules": true,
"K8sOpenAPIGen": true

9
third_party/BUILD vendored
View File

@ -4,8 +4,13 @@ licenses(["notice"])
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
srcs = glob(
["**"],
exclude = [
"etcd*/**",
"etcd*.tar.gz",
],
),
visibility = ["//visibility:private"],
)