Fix the path to code-generator in example update-codegen.sh

It seems this was copied from the main apiextensions-apiserver hack
directory without adjusting.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
This commit is contained in:
Stephen Kitt 2024-09-19 15:23:43 +02:00
parent b5e294414a
commit 71c77414d4
No known key found for this signature in database
GPG Key ID: 1CC5FA453662A71D

View File

@ -19,7 +19,7 @@ set -o nounset
set -o pipefail
SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)}
CODEGEN_PKG=${CODEGEN_PKG:-$(cd "${SCRIPT_ROOT}"; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../../../code-generator)}
source "${CODEGEN_PKG}/kube_codegen.sh"