Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Q] the proper way to add new parameter to kubernetes/client/configuration.py  #1582

Closed
@itaru2622

Description

@itaru2622

Link to the issue (please include a link to the specific documentation or example):
related to #1579
Description of the issue (please include outputs or screenshots if possible):

maintainer said in #1579 :

These files(kubernetes/client/configuration.yaml) are generated by openapi-generator and will get reverted when we re-generate the client.
The proper way to fix it is to send a PR to https://github.com/OpenAPITools/openapi-generator.
A mid-term workaround is to add a patch in this repo, for example: scripts/rest_client_patch.diff

I confirmed scripts/update-client.sh reverts 'no_proxy' from kubernetes/client/configuration.py.
but I could not find openapi definition file which is used as input to openapi-generator. where is it?
script/swagger.json seems to be output file.

I believe that:

  • the data model for kubernetes/client/configuration is defined in kubernetes-client's openapi definition file (json or yaml) and new parameter should be added into it.
  • for this matter(adding new parameter in data model), there is no need to change openapi-generator itself and workaround (adding by patch) is not good way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/documentationCategorizes issue or PR as related to documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions