Skip to content

Commit

Permalink
UPSTREAM: <carry>: Stop ignoring generated openapi definitions
Browse files Browse the repository at this point in the history
openshift/origin needs to be able to vendor these definitions so they
need to be committed.
  • Loading branch information
marun authored and damemi committed Dec 6, 2021
1 parent 0745c94 commit 72f9bb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/make-rules/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ CLEAN_PATTERNS=(
"doc_tmp"
"((?!staging\/src\/k8s\.io\/apiextensions-apiserver\/pkg\/generated\/openapi).)*/zz_generated.openapi.go"
"test/e2e/generated/bindata.go"
# TODO(bentheelder): remove this pattern after bazel is not in any supported releases
# see: https://github.com/kubernetes/enhancements/issues/2420
"bazel-.*"
)

for pattern in "${CLEAN_PATTERNS[@]}"; do
Expand Down
3 changes: 3 additions & 0 deletions pkg/generated/openapi/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ensure that openapi definitions are not ignored to ensure that
# openshift/origin can vendor them.
!zz_generated.openapi.go

0 comments on commit 72f9bb3

Please sign in to comment.