training-operator icon indicating copy to clipboard operation
training-operator copied to clipboard

Migrate Swagger generator script off k8s.io/kube-openapi/pkg/openapiconv

Open Jefftree opened this issue 2 months ago • 6 comments

What you would like to be added?

Migrate hack/swagger/main.go (and the similar scripts in kubeflow/spark-operator and kubeflow/katib) to build the OpenAPI v3 spec directly using k8s.io/kube-openapi/pkg/builder3 and pkg/spec3, rather than building a v2 Swagger spec and converting it with openapiconv.ConvertV2ToV3.

Why is this needed?

I am a maintainer for k8s.io/kube-openapi and am planning to deprecate and remove pkg/openapiconv, which was originally added as a temporary fallback for kube-aggregator. Migrating off pkg/openapiconv will prevent future k8s.io/kube-openapi dependency updates from breaking Python SDK generation.

/cc @andreyvelich

Jefftree avatar Sep 25 '26 21:09 Jefftree

🎉 Welcome to the Kubeflow Trainer! 🎉

Thanks for opening your first issue! We're happy to have you as part of our community 🚀

Here's what happens next:

  • Our team will review your issue soon! cc @kubeflow/kubeflow-trainer-team
  • If you'd like to contribute to this issue, check out our Contributing Guide for repo-specific guidelines and the Kubeflow Contributor Guide for general community standards.

Join the community:

Feel free to ask questions in the comments if you need any help or clarification! Thanks again for contributing to Kubeflow! 🙏

github-actions[bot] avatar Sep 25 '26 21:09 github-actions[bot]

/assign

dlanov avatar Sep 26 '26 20:09 dlanov

Thanks for letting us know @Jefftree!

cc @tariq-hasan @kubeflow/kubeflow-sdk-team @Shekharrajak @RobuRishabh we need to do the same for Spark Operator models.

andreyvelich avatar Sep 28 '26 21:09 andreyvelich

I have raised a similar issue for Spark Operator: https://github.com/kubeflow/spark-operator/issues/3210.

tariq-hasan avatar Sep 28 '26 23:09 tariq-hasan

Fixed in: https://github.com/kubeflow/trainer/pull/4126 /close

andreyvelich avatar Oct 27 '26 23:10 andreyvelich

@andreyvelich: Closing this issue.

In response to this:

Fixed in: https://github.com/kubeflow/trainer/pull/4126 /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

google-oss-prow avatar Oct 27 '26 23:10 google-oss-prow