Use pool pod controller with env informer (#2161)

Signed-off-by: Sanket Sudake sanketsudake@gmail.com

- Use informers and listers in executors
- Passing context properly in pool manager executor
- Environment updates in the pool manager would not cause updates in the deployment
- Environment update minimizing downtime
- Use replicaset controller and environment delete triggers to cleanup specialized pods
This commit is contained in:
Sanket Sudake
2021-08-31 09:31:32 +05:30
committed by GitHub
parent 1df59316e7
commit 1d5a09699b
11 changed files with 632 additions and 246 deletions
+7
View File
@@ -31,3 +31,10 @@ import (
func CacheKey(metadata *metav1.ObjectMeta) string {
return fmt.Sprintf("%v_%v", metadata.UID, metadata.ResourceVersion)
}
// CacheKeyForUID create a key that uniquely identifies the
// of the object. Since resourceVersion changes on every update and
// UIDs are unique, we don't use resource version here
func CacheKeyUID(metadata *metav1.ObjectMeta) string {
return fmt.Sprintf("%v", metadata.UID)
}