From 959c80daf663e5dd23f7f4891990b84dd5ddae7d Mon Sep 17 00:00:00 2001 From: Kyle Brandt Date: Thu, 1 Feb 2024 11:06:51 -0500 Subject: [PATCH] k8S: (Chore) Add arg to hack codegen to filter openapi generation (#81720) --- hack/update-codegen.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 124dd19e24a..25f53d21474 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -29,6 +29,9 @@ if [[ "${UPDATE_API_KNOWN_VIOLATIONS:-}" == "true" ]]; then fi for api_pkg in $(ls ./pkg/apis); do + if [[ "${1-}" != "" && ${api_pkg} != $1 ]]; then + continue + fi for pkg_version in $(ls ./pkg/apis/${api_pkg}); do echo "Generating openapi package for ${api_pkg}, version=${pkg_version} ..." grafana::codegen::gen_openapi \