Skip to content

Commit

Permalink
update openapi generator to complete the schema references
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Aug 19, 2022
1 parent d8b9c37 commit f08b392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/update-openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EXT_APIS_PKG="github.com/openshift/api"
# enumerate group versions
ALL_FQ_APIS=() # e.g. k8s.io/kubernetes/pkg/apis/apps k8s.io/api/apps/v1
INT_FQ_APIS=() # e.g. k8s.io/kubernetes/pkg/apis/apps
EXT_FQ_APIS=() # e.g. k8s.io/api/apps/v1
EXT_FQ_APIS=("k8s.io/apimachinery/pkg/apis/meta/v1") # e.g. k8s.io/api/apps/v1
for GVs in ${TYPE_PACKAGE_VERSIONS}; do
IFS=: read -r G Vs <<<"${GVs}"

Expand All @@ -32,7 +32,7 @@ go install ./${CODEGEN_PKG}/cmd/openapi-gen
declare -a OPENAPI_EXTRA_PACKAGES
${GOPATH}/bin/openapi-gen \
--input-dirs "$(codegen::join , "${EXT_FQ_APIS[@]}" "${OPENAPI_EXTRA_PACKAGES[@]+"${OPENAPI_EXTRA_PACKAGES[@]}"}")" \
--input-dirs "k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/version" \
--input-dirs "k8s.io/apimachinery/pkg/apis/meta/v1,k8s.io/apimachinery/pkg/runtime,k8s.io/apimachinery/pkg/util/intstr,k8s.io/apimachinery/pkg/api/resource,k8s.io/apimachinery/pkg/version,k8s.io/api/core/v1,k8s.io/api/rbac/v1,k8s.io/api/authorization/v1" \
--output-package "${output_package}/generated_openapi" \
-O zz_generated.openapi \
--go-header-file ${SCRIPT_ROOT}/hack/empty.txt \
Expand Down

0 comments on commit f08b392

Please sign in to comment.