Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gatekeeper Policies
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IT Common Platform
platform-support
helm-charts
Gatekeeper Policies
Merge requests
!63
PLATFORM-2126
"allow rollout restart w/ testing"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
PLATFORM-2126
"allow rollout restart w/ testing"
swarm-PLATFORM-2126-rolloutrestarttesting
into
master
Overview
0
Commits
10
Pipelines
2
Changes
2
Merged
Morgan Hoffman
requested to merge
swarm-PLATFORM-2126-rolloutrestarttesting
into
master
1 year ago
Overview
0
Commits
10
Pipelines
2
Changes
1
Expand
Fixes rollout restart gatekeeper policy
0
0
Merge request reports
Viewing commit
bf3e2039
Prev
Next
Show latest version
1 file
+
30
−
1
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
bf3e2039
onemoretimeplz1
· bf3e2039
Morgan Hoffman
authored
1 year ago
rego/allow_rollout_restart/policy_test.rego
+
30
−
1
Options
@@ -67,8 +67,37 @@ review_deployment_patch_extra_annotations(annotationname,annotationvalue,usernam
out
=
{
"review"
:
{
"userInfo"
:
{
"username"
:
username
"username"
:
username
,
"groups"
:
[
groupname
]
},
"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
}
}
}
}
}
}
}
}