gorilla icon indicating copy to clipboard operation
gorilla copied to clipboard

Added k8s api

Open nirkal opened this issue 1 year ago • 7 comments

nirkal avatar May 29 '23 05:05 nirkal

@tianjunz Is this in the expected format?

nirkal avatar May 29 '23 07:05 nirkal

Thanks for your contribution!🚀 I have been able to process the file and get this new updated API. Could you review it and let me know if that is correct or not?

tianjunz avatar May 29 '23 08:05 tianjunz

Thanks for your contribution!🚀 I have been able to process the file and get this new updated API. Could you review it and let me know if that is correct or not?

this looks about right. I've got a naive question (I am still learning how this works). I had included the complete API spec of Kubernetes, after the processing, there are two APIs. I wonder how it is possible to process the complete API spec of k8s.

nirkal avatar May 29 '23 09:05 nirkal

It is because the two questions you wrote is related to these two API calls and we just extract that from the entire JSON dataset. If you could come up with some question and api_call pairs, that would be super helpful! I think we can also process the entire JSON file but it would be without questions. Thanks again for contributing!

tianjunz avatar May 29 '23 09:05 tianjunz

okay, i start to understand this better now. I can come up with additional question and API call pairs. I actually want to make an exhaustive list, so we are able to fully generate k8s APIs from Gorilla (for all resources, and all actions). This might take some effort. I have some further questions, would really appreciate your answers.

  1. Is the an automatic CICD pipeline planned/setup so that when we push commits to the master, we are able to deploy the changes? I.e when I add the k8s api, how soon the model is able to serve the new changes?

  2. When a question & api call pair is given how is the extraction happening from json? Is there an automation involved here or its manual effort? In the commit, I see that the extraction for first question/API return python code, but for the second question, it uses kubectl cli command. How to make this consistent.

nirkal avatar May 29 '23 09:05 nirkal

  1. Sorry that we are planning to go through the reviewing process to make sure everything looks ok on our end. It is also aimed to provide a high-quality dataset. We will also provide a website to make this task easier! We plan to start community-contributed API Zoo training this week and have the first model released on 06/05.
  2. Yeah, I am not super familiar with Kubernetes. I tried to extract the from the documentation for the second command. The only thing I can find is the cli command. It would be super helpful if the document contains a consistent code template. Please let us know what you think, and we can better assist you in this case.

tianjunz avatar May 29 '23 18:05 tianjunz

@tianjunz thanks for the clarification. If I may ask you , what is the impact if entire JSON file is processed without questions.

@Alikbra @53jk1 What is your opinion? Is it possible to come up with questions covering vast range of API calls in k8s. Also curious how you plan to use k8s api calls from Gorilla.

nirkal avatar May 31 '23 06:05 nirkal