Skip to content

Commit

Permalink
fix: Add missing docs (#457)
Browse files Browse the repository at this point in the history
This was missed in a1ab112 and is currently
blocking PRs.

Signed-off-by: James Alseth <[email protected]>
  • Loading branch information
jalseth authored Nov 27, 2023
1 parent a1ab112 commit 07b4261
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/container-deny-escalation/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ spec:
c.securityContext.allowPrivilegeEscalation == true
}
container_allows_escalation(c) {
core.missing_field(c, "securityContext")
}
container_allows_escalation(c) {
core.missing_field(c.securityContext, "allowPrivilegeEscalation")
}
Expand Down
4 changes: 4 additions & 0 deletions examples/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ container_allows_escalation(c) {
c.securityContext.allowPrivilegeEscalation == true
}
container_allows_escalation(c) {
core.missing_field(c, "securityContext")
}
container_allows_escalation(c) {
core.missing_field(c.securityContext, "allowPrivilegeEscalation")
}
Expand Down

0 comments on commit 07b4261

Please sign in to comment.