Use Kubernetes informer and cache in router (#376)

Use Kubernetes client's informer and cache to watch functions and triggers in the router. This replaces the polling loop we were using so far.
This commit is contained in:
Ta-Ching Chen
2017-10-25 15:10:44 -07:00
committed by Soam Vasani
parent 8abb0005f6
commit 439e7d4535
7 changed files with 150 additions and 70 deletions
+3
View File
@@ -209,3 +209,6 @@ func (fc *FissionClient) Packages(ns string) PackageInterface {
func (fc *FissionClient) WaitForTPRs() {
waitForTPRs(fc.tprClient)
}
func (fc *FissionClient) GetTprClient() *rest.RESTClient {
return fc.tprClient
}