hack/update-generated-openapi.sh: add apiextensions spec
@@ -30,6 +30,10 @@ ORIGIN_INPUT_DIRS=(
sort -u
)
)
+APIEXTENSIONS_INPUT_DIRS=(
+ k8s.io/apimachinery/pkg/apis/meta/v1
+ k8s.io/api/autoscaling/v1
+)
KUBE_INPUT_DIRS=$(IFS=,; echo "${KUBE_INPUT_DIRS[*]}")
ORIGIN_INPUT_DIRS=$(IFS=,; echo "${ORIGIN_INPUT_DIRS[*]}")
@@ -57,3 +61,14 @@ ${GOPATH}/bin/openapi-gen \
--output-package "${ORIGIN_PREFIX}/vendor/k8s.io/kubernetes/pkg/generated/openapi" \
--report-filename "${SCRIPT_ROOT}/vendor/k8s.io/kubernetes/hack/openapi-violation.list" \
"$@"
+
+echo "Generating apiextensions-apiserver openapi"
+${GOPATH}/bin/openapi-gen \
+ --build-tag=ignore_autogenerated_openshift \
+ --output-file-base zz_generated.openapi \
+ --go-header-file ${SCRIPT_ROOT}/vendor/k8s.io/kubernetes/hack/boilerplate/boilerplate.generatego.txt \
+ --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" \
+ "$@"
