From 61f4602efec701fd6dd3ec7f85ba0a7b8d18ee57 Mon Sep 17 00:00:00 2001 From: Eytan Avisror Date: Fri, 18 Feb 2022 19:25:08 -0500 Subject: [PATCH] Update rollingupgrade_controller.go Signed-off-by: Eytan Avisror --- controllers/rollingupgrade_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/rollingupgrade_controller.go b/controllers/rollingupgrade_controller.go index e8372010..f7ae4581 100644 --- a/controllers/rollingupgrade_controller.go +++ b/controllers/rollingupgrade_controller.go @@ -141,6 +141,7 @@ func (r *RollingUpgradeReconciler) Reconcile(ctx context.Context, req ctrl.Reque if _, present := r.AdmissionMap.LoadOrStore(rollingUpgrade.NamespacedName(), scalingGroupName); !present { r.Info("admitted new rolling upgrade", "scalingGroup", scalingGroupName, "update strategy", rollingUpgrade.Spec.Strategy, "name", rollingUpgrade.NamespacedName()) r.CacheConfig.FlushCache("autoscaling") + r.CacheConfig.FlushCache("ec2") } else { r.Info("operating on existing rolling upgrade", "scalingGroup", scalingGroupName, "update strategy", rollingUpgrade.Spec.Strategy, "name", rollingUpgrade.NamespacedName()) }