VajiraPrabuddhaka / k8s-informer-for-crd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:Go 100.0%