项目作者: rahulsidpatil

项目描述 :
How to create k8s Custom Resource Definition(i.e.CRD) and a k8s Operator for it
高级语言: Go
项目地址: git://github.com/rahulsidpatil/k8s-crd-operator-demo.git
创建时间: 2019-12-30T12:11:18Z
项目社区:https://github.com/rahulsidpatil/k8s-crd-operator-demo

开源协议:

下载


This project demonstrates: How to create your own k8s Custom Resource Definition(CRD) and a k8s Operator for it.

How to generate code for this project:
Run following commands in ~/go/src/github.com/k8s-crd-operator-demo directory
1) go mod init (optional if go.mod is absent)
2) go mod vendor (optional if vendor directory or k8s.io/code-generator is absent)
3) bash -x vendor/k8s.io/code-generator/generate-groups.sh all \
“github.com/rahulsidgondapatil/k8s-crd-operator-demo/pkg/client” \
“github.com/rahulsidgondapatil/k8s-crd-operator-demo/pkg/apis” \
customcontroller:v1alpha1 \
—go-header-file ./hack/boilerplate.go.txt