Skip to content

Commit

Permalink
Use the same report files as before
Browse files Browse the repository at this point in the history
Kubernetes-commit: 6607834207a7f0a6083b2a1278e5842da024bc7b
  • Loading branch information
thockin authored and k8s-publishing-bot committed May 10, 2023
1 parent af9d183 commit aae9d58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 40 deletions.
37 changes: 0 additions & 37 deletions api_violation_exceptions.list

This file was deleted.

9 changes: 6 additions & 3 deletions hack/update-codegen.sh
Expand Up @@ -33,15 +33,18 @@ kube::codegen::gen_helpers \
--output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \
--boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt"

if [[ "${UPDATE_API_KNOWN_VIOLATIONS:-}" == "true" ]]; then
update_report="--update-report"
if [[ -n "${API_KNOWN_VIOLATIONS_DIR:-}" ]]; then
report_filename="${API_KNOWN_VIOLATIONS_DIR}/sample_apiserver_violation_exceptions.list"
if [[ "${UPDATE_API_KNOWN_VIOLATIONS:-}" == "true" ]]; then
update_report="--update-report"
fi
fi

kube::codegen::gen_openapi \
--input-pkg-root k8s.io/sample-apiserver/pkg/apis \
--output-pkg-root k8s.io/sample-apiserver/pkg/generated \
--output-base "$(dirname "${BASH_SOURCE[0]}")/../../.." \
--report-filename "${SCRIPT_ROOT}/api_violation_exceptions.list" \
--report-filename "${report_filename:-"/dev/null"}" \
${update_report:+"${update_report}"} \
--boilerplate "${SCRIPT_ROOT}/hack/boilerplate.go.txt"

Expand Down

0 comments on commit aae9d58

Please sign in to comment.