From 9bea4cfaeed9c17833760561e2605bba7509bba2 Mon Sep 17 00:00:00 2001 From: Andrey Velichkevich Date: Fri, 29 Nov 2024 00:21:12 +0000 Subject: [PATCH] Remove old gen_openapi Signed-off-by: Andrey Velichkevich --- hack/update-codegen.sh | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index fab2fc5143..2abaea0868 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -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