Fix executor tries to create a new deployment when a function is updated (#524)
Newdeploy manager now checks the existence of function service cache by function UID before trying to create a new deployment. And return the cached fsvc directly if the cache exists.
This commit is contained in:
@@ -117,6 +117,7 @@ func idleObjectReaper(kubeClient *kubernetes.Clientset,
|
||||
for _, fsvc := range funcSvcs {
|
||||
|
||||
fn, err := fissionClient.Functions(fsvc.Function.Namespace).Get(fsvc.Function.Name)
|
||||
|
||||
if err != nil {
|
||||
log.Printf("Error getting function: %v", fsvc.Function.Name)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user