client.events().inAnyNamespace().watch(myWatcher);
+++ action: DELETEDEvent(apiVersion=v1, count=1, firstTimestamp=2017-04-25T23:41:54Z, involvedObject=ObjectReference(apiVersion=v1, fieldPath=spec.containers{controller-manager}, kind=Pod, name=catalog-catalog-controller-manager-1242994143-ddl0l, namespace=catalog, resourceVersion=462865, uid=11fc24bf-2a05-11e7-a27a-080027117396, additionalProperties={}), kind=Event, lastTimestamp=2017-04-25T23:41:54Z, message=Started container with id 7b51c389f153832e7719a99738706c2ff38aa28b298b80741f439b712f166262, metadata=ObjectMeta(annotations=null, clusterName=null, creationTimestamp=2017-04-25T23:41:54Z, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels=null, name=catalog-catalog-controller-manager-1242994143-ddl0l.14b8c87cc177fb77, namespace=catalog, ownerReferences=[], resourceVersion=472706, selfLink=/api/v1/namespaces/catalog/events/catalog-catalog-controller-manager-1242994143-ddl0l.14b8c87cc177fb77, uid=c3851fae-2a10-11e7-a27a-080027117396, additionalProperties={}), reason=Started, source=EventSource(component=kubelet, host=minikube, additionalProperties={}), type=Normal, additionalProperties={})
So the "+++ action: DELETED" part is something I'm printing out myself, but the "DELETED" string is the name of a Fabric8 Kubernetes client Watcher.Action (http://static.javadoc.io/io.fabric8/kubernetes-client/2.2.14/io/fabric8/kubernetes/client/Watcher.Action.html).
You can see which resource the event is related to the `involvedObject` property. i.e. its a pod deletion event:
involvedObject=ObjectReference(apiVersion=v1, fieldPath=spec.containers{controller-manager}, kind=Pod, name=catalog-catalog-controller-manager-1242994143-ddl0l, namespace=catalog, resourceVersion=462865, uid=11fc24bf-2a05-11e7-a27a-080027117396, additionalProperties={}
+++ action: DELETED
Event(apiVersion=v1, count=1, firstTimestamp=2017-04-25T23:41:54Z, involvedObject=ObjectReference(apiVersion=v1, fieldPath=spec.containers{controller-manager}, kind=Pod, name=catalog-catalog-controller-manager-1242994143-ddl0l, namespace=catalog, resourceVersion=462865, uid=11fc24bf-2a05-11e7-a27a-080027117396, additionalProperties={}), kind=Event, lastTimestamp=2017-04-25T23:41:54Z, message=Started container with id 7b51c389f153832e7719a99738706c2ff38aa28b298b80741f439b712f166262, metadata=ObjectMeta(annotations=null, clusterName=null, creationTimestamp=2017-04-25T23:41:54Z, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels=null, name=catalog-catalog-controller-manager-1242994143-ddl0l.14b8c87cc177fb77, namespace=catalog, ownerReferences=[], resourceVersion=472706, selfLink=/api/v1/namespaces/catalog/events/catalog-catalog-controller-manager-1242994143-ddl0l.14b8c87cc177fb77, uid=c3851fae-2a10-11e7-a27a-080027117396, additionalProperties={}), reason=Started, source=EventSource(component=kubelet, host=minikube, additionalProperties={}), type=Normal, additionalProperties={})
I think its a Pod deleted event (not a deleted Event event)
Try run "kubectl get event -w" and see if you ever see an event for kind "Event" being created/deleted. I don't ;).
client.events().inAnyNamespace().watch(myWatcher);
On the other hand, when you do:client.events().inAnyNamespace().watch(myWatcher);...in fabric8, the client is hitting a different sort of resource that starts with /api/v1/watch/,
LASTSEEN FIRSTSEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE2017-04-27 09:29:35 -0700 PDT 2017-04-27 09:29:35 -0700 PDT 1 busybox-2844454261-j348g Pod spec.containers{busybox} Normal Killing kubelet, minikube Killing container with id docker://1d677a6b864b574f2f938fe6de437b31315a6ee933a7312e52abc49a8521db6d:Need to kill Pod
Event(apiVersion=v1, count=1, firstTimestamp=2017-04-27T16:29:35Z, involvedObject=ObjectReference(apiVersion=v1, fieldPath=spec.containers{busybox}, kind=Pod, name=busybox-2844454261-j348g, namespace=default, resourceVersion=552840, uid=702f8a3d-2b65-11e7-a27a-080027117396, additionalProperties={}), kind=Event, lastTimestamp=2017-04-27T16:29:35Z, message=Killing container with id docker://1d677a6b864b574f2f938fe6de437b31315a6ee933a7312e52abc49a8521db6d:Need to kill Pod, metadata=ObjectMeta(annotations=null, clusterName=null, creationTimestamp=2017-04-27T16:29:35Z, deletionGracePeriodSeconds=null, deletionTimestamp=null, finalizers=[], generateName=null, generation=null, labels=null, name=busybox-2844454261-j348g.14b94e0e94f764c1, namespace=default, ownerReferences=[], resourceVersion=553456, selfLink=/api/v1/namespaces/default/events/busybox-2844454261-j348g.14b94e0e94f764c1, uid=b3b7043d-2b66-11e7-a27a-080027117396, additionalProperties={}), reason=Killing, source=EventSource(component=kubelet, host=minikube, additionalProperties={}), type=Normal, additionalProperties={})
Mysteries solved!