diff --git a/rego/allow_rollout_restart/policy_test.rego b/rego/allow_rollout_restart/policy_test.rego index a2a9d6f57e66b24556db8a08daa53e612a18adbd..d0f3d293851b832eab2a40e46fbd6e8b2b53625c 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 + } + } + } + } } } }