Skip to content

Commit

Permalink
Updates from Max's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
julianKatz committed Sep 16, 2021
1 parent e6d2113 commit 63a047c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion library/pod-security-policy/apparmor/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
type: object
properties:
allowedProfiles:
description: "An array of AppArmor profiles. Examples: runtime/default, unconfined."
description: "An array of AppArmor profiles. Examples: `runtime/default`, `unconfined`."
type: array
items:
type: string
Expand Down
4 changes: 2 additions & 2 deletions library/pod-security-policy/capabilities/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ spec:
properties:
allowedCapabilities:
type: array
description: "An allow-list of Linux capabilities."
description: "An list of Linux capabilities that can be added to a container."
items:
type: string
requiredDropCapabilities:
type: array
description: "A disallow-list of Linux capabilities."
description: "A list of Linux capabilities that are required to be dropped from a container."
items:
type: string
targets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
properties:
allowedFlexVolumes:
type: array
description: "An array of AllowedFlexVolume objects with the single field: 'driver'."
description: "An array of AllowedFlexVolume objects."
items:
type: object
properties:
Expand Down
2 changes: 2 additions & 0 deletions library/pod-security-policy/fsgroup/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ spec:
type: object
properties:
min:
description: "The minimum GID in the range, inclusive."
type: integer
max:
description: "The maximum GID in the range, inclusive."
type: integer
targets:
- target: admission.k8s.gatekeeper.sh
Expand Down
6 changes: 3 additions & 3 deletions library/pod-security-policy/host-filesystem/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ spec:
items:
type: object
properties:
readOnly:
type: boolean
description: "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly."
pathPrefix:
type: string
description: "The path prefix that the host volume must match."
readOnly:
type: boolean
description: "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly."
targets:
- target: admission.k8s.gatekeeper.sh
rego: |
Expand Down

0 comments on commit 63a047c

Please sign in to comment.