either give direct path of kubeconfig in -kubeconfig flag or import it using the below command
cat ~/.kube/config > config
and then run the go controller using
go build && ./crds-controller -kubeconfig=config
- install crd & cr in cluster
kubectl apply -f resources/crd.yaml kubectl apply -f resources/cr.yaml
- Req Output: should create a deployment & respective number of pods
- Upon editing the cr i.e. foo the pods should also change respectively
to run the hack script you need to either change path of code-generator or add that repo as a folder here. https://github.com/kubernetes/code-generator