Coder Social home page Coder Social logo

salemgolemugoo / chatgpt-yaml-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robusta-dev/chatgpt-yaml-generator

0.0 2.0 0.0 299 KB

Give ChatGPT full knowledge of Kubernetes schemas + validation capabilities

License: MIT License

Python 100.00%

chatgpt-yaml-generator's Introduction

ChatGPT Kubernetes YAML Plugin by Robusta

A ChatGPT plugin to generate accurate Kubernetes manifests

twitter robusta slack robusta LinkedIn Youtube

This plugin gives ChatGPT up-to-date knowledge of every Kubernetes resource and their complete specifications. It lets ChatGPT query the Kubernetes OpenAPI (swagger) schema to fetch resource definitions. Additionally, it provides ChatGPT with schema validation capabilities.

Key Features

  1. Schema Lookup: The GET /schemas/search/{resourceName} endpoint retrieves fully-namespaced names for Kubernetes resources. For instance, a search for 'Container' will yield 'io.k8s.api.core.v1.Container'.

  2. Schema Retrieval: The GET /schemas/resource/{resourceType} endpoint fetches the latest OpenAPI schemas for Kubernetes resources using fully-namespaced resource names.

  3. YAML Validation: The POST /validate-yaml endpoint validates generated Kubernetes YAML manifests, guaranteeing their accuracy.

Setup

To install the required packages for this plugin, run the following command:

pip install -r requirements.txt

To run the plugin, enter the following command:

python main.py

Once the local server is running:

  1. Navigate to https://chat.openai.com.
  2. In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
  3. Select "Plugin store"
  4. Select "Develop your own plugin" (ChatGPT Plus is required right now)
  5. Enter in localhost:5003 since this is the URL the server is running on locally, then select "Find manifest file".

The plugin should now be installed and enabled! What the video above for ideas on using the plugin.

Getting help

Join the Robusta Slack Community and ask for help.

chatgpt-yaml-generator's People

Contributors

aantn avatar

Watchers

 avatar  avatar

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.