Skip to content

Commit 1b73647

Browse files
tjmoore4jkatz
authored andcommitted
Initial update to add controller watches to namespace update as
exist for namespace add controller function.
1 parent 99255ce commit 1b73647

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

controller/namespacecontroller.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ func (c *NamespaceController) onUpdate(oldObj, newObj interface{}) {
124124
return
125125
} else {
126126
log.Debugf("NamespaceController: onUpdate crunchy namespace updated %s", newNs.ObjectMeta.SelfLink)
127+
c.ThePodController.SetupWatch(newNs.Name)
128+
c.TheJobController.SetupWatch(newNs.Name)
129+
c.ThePgpolicyController.SetupWatch(newNs.Name)
130+
c.ThePgbackupController.SetupWatch(newNs.Name)
131+
c.ThePgreplicaController.SetupWatch(newNs.Name)
132+
c.ThePgclusterController.SetupWatch(newNs.Name)
133+
c.ThePgtaskController.SetupWatch(newNs.Name)
127134
}
128135

129136
}

0 commit comments

Comments
 (0)