Code Monkey home page Code Monkey logo

Comments (19)

ityuhui avatar ityuhui commented on July 30, 2024 1

Good suggestion! I want to do this before but consider it as low priority.
And welcome PR, the change should be done in the openapi-generator project.

from c.

minerba avatar minerba commented on July 30, 2024 1

Ok. Thank U I will PR to openapi-generator project.

from c.

ityuhui avatar ityuhui commented on July 30, 2024 1

Hi @minerba

Do you have interest to fix this issue ?

The steps:

  1. Update the files in the directory: https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/C-libcurl
  2. Execute the script in https://github.com/kubernetes-client/gen with the configuration https://github.com/kubernetes-client/c/blob/master/settings to get a generated directory kubernetes
  • The step 2 can be replaced with below commands if you want to use the current swagger spec of Kubernetes API server:
# Execute the command in the directory of repo `OpenAPITools/openapi-generator`
mvn clean package
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -i ../c/kubernetes/swagger.json   -g c    -o ../kubernetes --skip-validate-spec
  1. Copy the files in kubernetes to overwrite the files in the directory of this repo c/kubernetes/ except CMakeLists.txt
  2. Follow the https://github.com/kubernetes-client/c/blob/master/README.md to build and test
  3. Create a PR to apply to merge.

from c.

ityuhui avatar ityuhui commented on July 30, 2024 1

I will fix it. Reopen this ticket to trace.

from c.

ityuhui avatar ityuhui commented on July 30, 2024

Could you please give any function for example ?

from c.

minerba avatar minerba commented on July 30, 2024

I have a Compile warning in this function

Because of parameters "char *" .

v1_pod_t* CoreV1API_readNamespacedPod(apiClient_t *apiClient, char * name , char * _namespace , char * pretty , int exact , int _export )

parameters name, _namespace, pretty are unlikely to be modified.

I suggest that functions that take a parameter "char " are changed to "const char"

The same for other functions in Directory '/kubernetes/api/*'.

from c.

ityuhui avatar ityuhui commented on July 30, 2024

@minerba

You need submit 2 PR.

from c.

ityuhui avatar ityuhui commented on July 30, 2024

Hi @minerba

Are you still working on this ticket ?

from c.

k8s-triage-robot avatar k8s-triage-robot commented on July 30, 2024

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

from c.

k8s-triage-robot avatar k8s-triage-robot commented on July 30, 2024

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

from c.

ityuhui avatar ityuhui commented on July 30, 2024

/remove-lifecycle rotten

from c.

minerba avatar minerba commented on July 30, 2024

@ityuhui
sorry Well... How can I apply this command? "/remove-lifecycle rotten"

from c.

ityuhui avatar ityuhui commented on July 30, 2024

How can I apply this command? "/remove-lifecycle rotten"

I have done it. You don't need do it again.

from c.

minerba avatar minerba commented on July 30, 2024

@ityuhui Thank you:)

from c.

k8s-triage-robot avatar k8s-triage-robot commented on July 30, 2024

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

from c.

minerba avatar minerba commented on July 30, 2024

Thanks your Pr.

from c.

k8s-triage-robot avatar k8s-triage-robot commented on July 30, 2024

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

from c.

k8s-triage-robot avatar k8s-triage-robot commented on July 30, 2024

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

from c.

k8s-ci-robot avatar k8s-ci-robot commented on July 30, 2024

@k8s-triage-robot: Closing this issue.

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/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.

from c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.