Skip to content

Commit 4e1e5af

Browse files
authored
Merge pull request kubernetes#77403 from liggitt/apimachinery-protobuf
Generate and verify apimachinery protobuf
2 parents dbad8f3 + 54e948c commit 4e1e5af

File tree

3 files changed

+671
-192
lines changed

3 files changed

+671
-192
lines changed

hack/verify-generated-protobuf.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
2323

2424
kube::golang::setup_env
2525

26-
APIROOTS=$(git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname | sort | uniq)
26+
APIROOTS=$({
27+
# gather the packages explicitly requesting generation
28+
git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname
29+
# add the root apimachinery pkg containing implicitly generated files (--apimachinery-packages)
30+
echo staging/src/k8s.io/apimachinery/pkg
31+
} | sort | uniq)
2732

2833
_tmp="${KUBE_ROOT}/_tmp"
2934

0 commit comments

Comments
 (0)