Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce openapi-generator #95

Merged
merged 3 commits into from
Jan 15, 2019

Conversation

tomplus
Copy link
Member

@tomplus tomplus commented Jan 11, 2019

This PR introduces openapi-generator as a replacement for swagger-codegen (issue #93).

There are 3 commits for better readability:

  1. Move files related to the swagger-codegen to a separate folder and update all clients to use it. I tested it on python, python-asyncio clients - no differences from generated code

  2. Add openapi-generator - files are very similar but I expected that it will change in the future (new options, switches, names etc.)

  3. Switch python-asyncio client to use openapi-generator - generated files are committed to a branch and differences can be examined in this PR: feat: use openapi-generator to generate client tomplus/kubernetes_asyncio#58
    There are some breaking changes which I'll have to cope with that but it looks very promising.

More information about differences between generators you can find in a migration guide.

I'm looking forward to your opinion. Can we switch official clients to the new generator? Of course not in this PR but in general. It'll be a breaking change and maintainers should handle and announce it properly.

Thanks!

PTAL: @brendandburns @mbohlool @roycaihw

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 11, 2019
@brendandburns
Copy link
Contributor

/lgtm
/approve

Many thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 15, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns, tomplus

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 15, 2019
@k8s-ci-robot k8s-ci-robot merged commit d0821e6 into kubernetes-client:master Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants