MCPcopy Index your code
hub / github.com/argoproj/argo-schema-generator

github.com/argoproj/argo-schema-generator @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
565 symbols 1,146 edges 6 files 3 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Description

This repo contains a tool that generates a kustomize schema file for native kubernetes resources plus projects under the argoproj name including Argo CD, Argo Rollouts, Argo Workflows, and Argo Events.

How to run

To run the tool, run the following command:

make gen-openapi-schema

How to use

In your kustomization.yaml file add a config block like

Using main branch:

openapi:
  path: https://raw.githubusercontent.com/argoproj/argo-schema-generator/main/schema/argo_all_k8s_kustomize_schema.json

Using a specific tag:

openapi:
  path: https://github.com/argoproj/argo-schema-generator/raw/2022-08-04-1659642986/schema/argo_all_k8s_kustomize_schema.json

Github Action

There is a Github action set to run on the first of each month that will update the schema's. This action can also be manually run to update definitions. It will also create a tag.

Core symbols most depended-on inside this repo

checkErr
called by 6
cmd/gen-schema/main.go
generateOpenApiSchema
called by 5
cmd/gen-schema/main.go
loadK8SDefinitions
called by 1
cmd/gen-schema/main.go
MarshalJSON
called by 0
cmd/gen-schema/main.go
main
called by 0
cmd/gen-schema/main.go

Shape

Function 560
Struct 4
Method 1

Languages

Go100%

Modules by API surface

pkg/cd/openapi_generated.go155 symbols
pkg/workflows/openapi_generated.go153 symbols
pkg/events/openapi_generated.go134 symbols
pkg/rollouts/openapi_generated.go114 symbols
cmd/gen-schema/main.go9 symbols

For agents

$ claude mcp add argo-schema-generator \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact