Skip to content

Generate Crossplane Composite Resource Definitions from Go structs

Notifications You must be signed in to change notification settings

marcoths/xrd-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xrd-gen

xrd-gen is a command-line interface (CLI) to generate Crossplane Composite Resource Definitions (XRDs) from
Go structs.

Usage:
  xrd-gen [flags]

Examples:
 # Generate XRDs for all structs in the examples/deploy directory.
xrd-gen --path=examples/deploy

Flags:
  -h, --help          help for xrd-gen
  -p, --path string   path to the source CRDs

Installation

Building latest version from source

If you have a Go environment configured, you can install the latest version of xrd-gen from the command line.

Building from Docker

If you have Docker installed, you can build a Docker image and run xgen from a container.

docker build -t xgen .

Then to run it as a container:

docker run --rm -it -v $(pwd):/work xgen --path=/work/examples/deploy

About

Generate Crossplane Composite Resource Definitions from Go structs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published