Skip to content

Commit 98f082a

Browse files
committed
document eventsource implementation
1 parent 5ff1c7a commit 98f082a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

samples/tomcat/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,9 @@ all Deployments managed by the Controller (identified by the `managed-by` label)
5959
When an event from a Deployment is received we have to identify which Tomcat object does the Deployment
6060
belong to. This is done when the DeploymentEventSource creates the DeploymentEvent.
6161

62+
The TomcatController has to take care of setting the `managed-by` label on the Deployment so the
63+
DeploymentEventSource can watch the right Deployments.
64+
The TomcatController also has to set `ownerReference` on the Deployment so later the DeploymentEventSource can
65+
identify which Tomcat does the Deployment belong to. This is necessary so the frameowork can call the Controller
66+
`createOrUpdate` method correctly.
67+

0 commit comments

Comments
 (0)