diff --git a/hack/make-rules/clean.sh b/hack/make-rules/clean.sh index 9305c8df6c2a1..9a3f2e9c513a9 100755 --- a/hack/make-rules/clean.sh +++ b/hack/make-rules/clean.sh @@ -25,7 +25,6 @@ CLEAN_PATTERNS=( "_tmp" "doc_tmp" "((?!staging\/src\/k8s\.io\/apiextensions-apiserver\/pkg\/generated\/openapi).)*/zz_generated.openapi.go" - "test/e2e/generated/bindata.go" ) for pattern in "${CLEAN_PATTERNS[@]}"; do diff --git a/pkg/generated/openapi/.gitignore b/pkg/generated/openapi/.gitignore new file mode 100644 index 0000000000000..94138bddbae8f --- /dev/null +++ b/pkg/generated/openapi/.gitignore @@ -0,0 +1,3 @@ +# Ensure that openapi definitions are not ignored to ensure that +# openshift/origin can vendor them. +!zz_generated.openapi.go diff --git a/test/e2e/generated/.gitignore b/test/e2e/generated/.gitignore new file mode 100644 index 0000000000000..78d1d4e5edd7d --- /dev/null +++ b/test/e2e/generated/.gitignore @@ -0,0 +1,2 @@ +# Ensure that bindata is not ignored to ensure openshift/origin can vendor it. +!bindata.go