Playground to create k8s CDR and Custom Controller.
Playground to create k8s CDR and Custom Controller.
$ kubectl apply -f crd.yml
customresourcedefinition.apiextensions.k8s.io/hoges.sample.kamiazya.tech created
go get k8s.io/client-go/...
go get k8s.io/apimachinery/...
go get github.com/golang/glog
go get k8s.io/code-generator/...
# k8s.io/code-generator/generate-groups.sh
$ ../../../k8s.io/code-generator/generate-groups.sh \
all \
github.com/kamiazya/k8s-cdr-custom-controller-playground/pkg/client \
github.com/kamiazya/k8s-cdr-custom-controller-playground/pkg/apis \
sample:v1
Generating deepcopy funcs
Generating clientset for sample:v1 at github.com/kamiazya/k8s-cdr-custom-controller-playground/pkg/client/clientset
Generating listers for sample:v1 at github.com/kamiazya/k8s-cdr-custom-controller-playground/pkg/client/listers
Generating informers for sample:v1 at github.com/kamiazya/k8s-cdr-custom-controller-playground/pkg/client/informers