Note: - the code-generator:
- is not aware of Go modules
- will read definitions from the pkg/apis/itemresource/v1 package in this (github.com/keith-cullen/clientset) module
- place generated code in ${GOPATH}/src/github.com/keith-cullen/clientset
- the generated code must be copied from $GOPATH/src/github.com/keith-cullen/clientset into this module
$ cd clientset
$ ${GOPATH}/src/k8s.io/code-generator/generate-groups.sh all "github.com/keith-cullen/clientset/pkg/client" "github.com/keith-cullen/clientset/pkg/apis" itemresource:v1
$ cp -r ${GOPATH}/src/github.com/keith-cullen/clientset/pkg .
Create the CRD
$ kubectl apply -f item_crd.yaml
$ kubectl get ns
$ kubectl get crds