k8s-dynamic-informer

command module
v0.0.0-...-161d42b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

README

k8s-dynamic-informer

Testing out Dynamic Informers in Kubernetes

Running

go run ./main.go

The output will look something like this:

Added Pod kube-system/coredns-f9fd979d6-8rbmd
Added Pod kube-system/coredns-f9fd979d6-vm4p4
Added Pod kube-system/etcd-docker-desktop
Added Pod kube-system/kube-apiserver-docker-desktop
Added Pod kube-system/kube-controller-manager-docker-desktop
Added Pod kube-system/kube-proxy-nwjht
Added Pod kube-system/kube-scheduler-docker-desktop
Added Pod kube-system/storage-provisioner
Added Pod kube-system/vpnkit-controller
Added Pod default/bar
Updated Pod default/bar
Updated Pod default/bar
Updated Pod default/bar
Updated Pod default/bar
Updated Pod default/bar
Updated Pod default/bar
Updated Pod default/bar
Updated Pod default/bar
Deleted Pod default/bar

Based on the example from https://hackernoon.com/platforms-on-k8s-with-golang-watch-any-crd-0v2o3z1q

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL