Skip to content

openshift-evangelists/crd-code-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crd-code-generation

Example repository for the blog post Kubernetes Deep Dive: Code Generation for CustomResources.

Installation

export GOPATH=~/go
go get github.com/openshift-evangelists/crd-code-generation

Getting Started

First register the custom resource definition:

kubectl apply -f artifacts/databases-crd.yaml

Then add an example of the Database kind:

kubectl apply -f artifacts/my-database.yaml

Finally build and run the example:

cd ~/go/src/github.com/openshift-evangelists/crd-code-generation/cmd/example/
go build
./example -kubeconfig ~/.kube/config

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published