Demo for using Kubernetes' ThirdPartyResource resources through the client-go library.
Check out the repository to your go workspace, e.g. ~/go/src/github.com/tiaanl/kube-tpr-demo
Build the binary:
# Install glide to manage dependencies
go get github.com/Masterminds/glide
# Install dependencies
glide install
# Build the binary
go build -v -o third .
Register the Namespace and ThirdPartyResource in kubernetes:
./third init
Add a new demo:
./third add --name=demo1
./third add --name=demo2
Get a list of all the demos:
./third list
Watch demos as they get created:
./third watch
# In another terminal start adding new demos
./third add --name=demo3