From 0a0a49656cc8cbcf922d5ccbb079ae949839bc1e Mon Sep 17 00:00:00 2001 From: Morgan Hoffman <hoffmanm@vt.edu> Date: Thu, 14 Dec 2023 10:44:03 -0800 Subject: [PATCH] onemoretimeplz --- rego/allow_rollout_restart/policy_test.rego | 97 --------------------- 1 file changed, 97 deletions(-) diff --git a/rego/allow_rollout_restart/policy_test.rego b/rego/allow_rollout_restart/policy_test.rego index 69d776f..5d919c1 100644 --- a/rego/allow_rollout_restart/policy_test.rego +++ b/rego/allow_rollout_restart/policy_test.rego @@ -68,104 +68,7 @@ review_deployment_patch_extra_annotations(annotationname,annotationvalue,usernam "review": { "userInfo": { "username": username - }, - "operation": "UPDATE", - "kind": { - "kind": "Deployment" - }, - "object": { - "spec": { - "template": { - "metadata": { - "annotations": { - "dreaded_gazebo": "indeed", - annotationname: annotationvalue - } - } - } - } - }, - "oldObject": { - "spec": { - "template:" { - "metadata": { - "annotations": { - "kubectl.kubernetes.io/restartedAt": previousrestarted - } - } - } - } } } } } - -review_deployment_patch_existing(annotationname,annotationvalue,username,groupname,previousrestarted) = out { - out = { - "review": { - "userInfo": { - "username": username - }, - "operation": "UPDATE", - "kind": { - "kind": "Deployment" - }, - "object": { - "spec": { - "template": { - "metadata": { - "annotations": { - annotationname: annotationvalue - } - } - } - } - }, - "oldObject": { - "spec": { - "template": { - "metadata": { - "annotations": { - "kubectl.kubernetes.io/restartedAt": previousrestarted - } - } - } - } - } - } - } -} - -review_deployment_patch_absent(annotationname,annotationvalue,username,groupname) = out { - out = { - "review": { - "userInfo": { - "username": username - }, - "operation": "UPDATE", - "kind": { - "kind": "Deployment" - }, - "oldObject": { - "spec": { - "template": { - "metadata": { - "annotations": {} - } - } - } - }, - "object": { - "spec": { - "template": { - "metadata": { - "annotations": { - annotationname: annotationvalue - } - } - } - } - } - } - } -} \ No newline at end of file -- GitLab