k8s client-go informer for CRD

Use the following steps to tryout this.

  1. Create crd and cr
kubectl apply -f resources/api_crd.yaml
kubectl apply -f resources/api_cr.yaml
  1. Run the informer
go run main.go
  1. Try Create, Update, delete of Custom Resources and you will see onAdd, onUpdate, onDelete methods will call accordingly.