Function Update if config/secret changes (#1224)

* Config and secret change to invoke function update
* Added recycle function for pool manager as well - where it recycles the specialized pods
* Switched to rolling update of pods and env variable based change instead of deleting pods in new deploy executor
This commit is contained in:
Vishal
2019-07-23 09:27:43 +08:00
committed by Ta-Ching Chen
parent 1beaa9ec13
commit 93c5b53b77
7 changed files with 305 additions and 11 deletions
+2
View File
@@ -137,6 +137,7 @@ func (executor *Executor) Serve(port int) {
defer cancel()
executor.ndm.Run(ctx)
executor.gpm.Run(ctx)
executor.cms.Run(ctx)
r := mux.NewRouter()
r.HandleFunc("/v2/getServiceForFunction", executor.getServiceForFunctionApi).Methods("POST")
@@ -144,6 +145,7 @@ func (executor *Executor) Serve(port int) {
r.HandleFunc("/healthz", executor.healthHandler).Methods("GET")
address := fmt.Sprintf(":%v", port)
err := http.ListenAndServe(address, &ochttp.Handler{
Handler: r,
})