From b34c524d386760c8b6b15b29a65635841fee5021 Mon Sep 17 00:00:00 2001
From: Morgan Hoffman <hoffmanm@vt.edu>
Date: Thu, 14 Dec 2023 10:53:16 -0800
Subject: [PATCH] onemoretimeplz4

---
 rego/allow_rollout_restart/policy_test.rego | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/rego/allow_rollout_restart/policy_test.rego b/rego/allow_rollout_restart/policy_test.rego
index a2a9d6f..d0f3d29 100644
--- a/rego/allow_rollout_restart/policy_test.rego
+++ b/rego/allow_rollout_restart/policy_test.rego
@@ -85,6 +85,17 @@ review_deployment_patch_extra_annotations(annotationname,annotationvalue,usernam
             }
           }
         }
+      },
+      "oldObject": {
+        "spec": {
+          "template:" {
+            "metadata": {
+              "annotations": {
+                "kubectl.kubernetes.io.restartedAt": previousrestarted
+              }
+            } 
+          }
+        }
       }
     }
   }
-- 
GitLab