hack: adapt update-generated-openapi.sh to 1.18
@@ -33,7 +33,10 @@ ORIGIN_INPUT_DIRS=(
)
)
APIEXTENSIONS_INPUT_DIRS=(
+ k8s.io/apiextensions-apiserver
k8s.io/apimachinery/pkg/apis/meta/v1
+ k8s.io/apimachinery/pkg/runtime
+ k8s.io/apimachinery/pkg/version
k8s.io/api/autoscaling/v1
)
@@ -50,7 +53,7 @@ ${GOPATH}/bin/openapi-gen \
--output-base="${GOPATH}/src" \
--input-dirs $(join , "${KUBE_INPUT_DIRS[@]}") \
--output-package "${ORIGIN_PREFIX}/vendor/k8s.io/kubernetes/pkg/generated/openapi" \
- --report-filename "${SCRIPT_ROOT}/vendor/k8s.io/kubernetes/hack/openapi-violation.list" \
+ --report-filename "${SCRIPT_ROOT}/vendor/k8s.io/kubernetes/api/api-rules/violation_exceptions.list" \
"$@"
echo "Generating apiextensions-apiserver openapi"
@@ -61,5 +64,5 @@ ${GOPATH}/bin/openapi-gen \
--output-base="${GOPATH}/src" \
--input-dirs $(join , "${APIEXTENSIONS_INPUT_DIRS[@]}") \
--output-package "${ORIGIN_PREFIX}/vendor/k8s.io/apiextensions-apiserver/pkg/generated/openapi" \
- --report-filename "${SCRIPT_ROOT}/vendor/k8s.io/apiextensions-apiserver/hack/openapi-violation.list" \
+ --report-filename "${SCRIPT_ROOT}/vendor/k8s.io/kubernetes/api/api-rules/apiextensions_violation_exceptions.list" \
"$@"
