Skip to content

Commit

Permalink
Remove old gen_openapi
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Velichkevich <[email protected]>
  • Loading branch information
andreyvelich committed Nov 29, 2024
1 parent 7f0df7b commit 9bea4cf
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,6 @@ go run ${OPENAPI_PKG}/cmd/openapi-gen \
--report-filename "${TRAINING_OPERATOR_ROOT}/hack/violation_exception_v2alpha1.list" \
"${TRAINING_OPERATOR_ROOT}/pkg/apis/kubeflow.org/v2alpha1"

# # Generating OpenAPI spec for Training Operator V1.
# echo "Generating OpenAPI specification for kubeflow.org/v1"
# kube::codegen::gen_openapi \
# --boilerplate "${TRAINING_OPERATOR_ROOT}/hack/boilerplate/boilerplate.go.txt" \
# --output-pkg "${TRAINING_OPERATOR_PKG}/pkg/apis/kubeflow.org/v1" \
# --output-dir "${TRAINING_OPERATOR_ROOT}/pkg/apis/kubeflow.org/v1" \
# --report-filename "${TRAINING_OPERATOR_ROOT}/hack/violation_exception_v1.list" \
# --update-report \
# "${TRAINING_OPERATOR_ROOT}/pkg/apis/kubeflow.org/v1"

# # Generating OpenAPI spec for Training Operator V2.
# echo "Generating OpenAPI specification for kubeflow.org/v2alpha1"
# kube::codegen::gen_openapi \
# --boilerplate "${TRAINING_OPERATOR_ROOT}/hack/boilerplate/boilerplate.go.txt" \
# --output-pkg "${TRAINING_OPERATOR_PKG}/pkg/apis/kubeflow.org/v2alpha1" \
# --output-dir "${TRAINING_OPERATOR_ROOT}/pkg/apis/kubeflow.org/v2alpha1" \
# --report-filename "${TRAINING_OPERATOR_ROOT}/hack/violation_exception_v2alpha1.list" \
# --update-report \
# "${TRAINING_OPERATOR_ROOT}/pkg/apis/kubeflow.org/v2alpha1"

# Generating OpenAPI Swagger for Training Operator V2.
echo "Generate OpenAPI Swagger for kubeflow.org/v2alpha1"
go run hack/swagger-v2/main.go >api.v2/openapi-spec/swagger.json

0 comments on commit 9bea4cf

Please sign in to comment.