Skip to content

Conversation

@stephenfin
Copy link

@stephenfin stephenfin commented Jan 9, 2026

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

While working on #2496 and #2497, I noticed that running the update-client.sh script generated some unexpected changes to files. Upon further inspection, it appears files and hunks were the result of previous PRs that should have instead been applies as patches to the client (via the update-client.sh script).

In addition, I also noticed that docs builds were returning a lot of errors, mainly because the generator is generating syntactically invalid reStructuredText docstrings. This has led to a long-term failure to build the docs.

I resolve all issues in this PR via a series of commits that do the following:

  • Remove auto-generated client docs. We can re-add these in the future and users can use the REPL and/or pydoc to explore the API until then.
  • Update the docs build to reflect the demise of Python 2 and address some other minor issues
  • Update the tox configuration to allow users to run tests using tox again
  • Update the update-client.sh so that we layer on required changes

This should set us up nicely for a future PR that will update openapi-generator to a less ancient version. I am working on this currently.

Which issue(s) this PR fixes:

Special notes for your reviewer:

I don't know why the maintainers aren't seeing these issues locally: perhaps they are and have local tooling to help workaround them. In any case, I would encourage you to go through this PR commit by commit and to feel free to drop anything that doesn't make sense.

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


These have not built successfully for a long-time (over two years [1] at
time of writing). We should work to re-add these but lets focus on
getting out openapi-generator version bumped first.

[1] https://app.readthedocs.org/projects/kubernetes/builds/

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Update examples that were moved in kubernetes-client#938 and fix title underlines
(docutils cares about this stuff).

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Remove Python 2 stuff as well as unused or commented out configuration
values. Also add sphinx to the dependencies

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Use more recent Python versions and remove use of the build_sphinx
distutils command which hasn't existed for many years now.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Jan 9, 2026
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: stephenfin
Once this PR has been reviewed and has the lgtm label, please assign roycaihw for approval. For more information see the Code Review Process.

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

Details 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 size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 9, 2026
Python 3.13 is the latest and greatest.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
We will subsequently overlay our own commits on this. We also stop
setting OPENAPI_GENERATOR_COMMIT: this is already being set by the
'openapi/python.sh' from 'kubernetes-client/gen' so setting it here is
very misleading.

With this change, any user should now be able to run e.g.:

  USERNAME=kubernetes CLIENT_ROOT=../kubernetes ./scripts/update-client.sh

and see zero changes (assuming kubernetes/kubernetes is in fact cloned
to the parent directory).

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
@stephenfin stephenfin force-pushed the fix-openapi-generator-sync branch from cd87cd5 to a7008b0 Compare January 9, 2026 11:15
This was replacing the wrong method.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none Denotes a PR that doesn't merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants