mirror of https://github.com/k3s-io/k3s
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 @BenTheElderpull/8/head
commit
1ac21b75c4
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"GoPrefix": "k8s.io/kubernetes",
|
||||
"SkippedPaths": [
|
||||
"^_.*"
|
||||
"^_.*",
|
||||
"^third_party/etcd.*"
|
||||
],
|
||||
"AddSourcesRules": true,
|
||||
"K8sOpenAPIGen": true
|
||||
|
|
|
@ -4,8 +4,13 @@ licenses(["notice"])
|
|||
|
||||
filegroup(
|
||||
name = "package-srcs",
|
||||
srcs = glob(["**"]),
|
||||
tags = ["automanaged"],
|
||||
srcs = glob(
|
||||
["**"],
|
||||
exclude = [
|
||||
"etcd*/**",
|
||||
"etcd*.tar.gz",
|
||||
],
|
||||
),
|
||||
visibility = ["//visibility:private"],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue