Skip to content

Commit dbea4af

Browse files
committed
SecurityContextConstraints: update description of the Priority field.
1 parent 8ef052d commit dbea4af

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

pkg/security/apis/security/types.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ type SecurityContextConstraints struct {
2121

2222
// Priority influences the sort order of SCCs when evaluating which SCCs to try first for
2323
// a given pod request based on access in the Users and Groups fields. The higher the int, the
24-
// higher priority. If scores for multiple SCCs are equal they will be sorted by name.
24+
// higher priority. An unset value is considered a 0 priority. If scores
25+
// for multiple SCCs are equal they will be sorted from most restrictive to
26+
// least restrictive. If both priorities and restrictions are equal the
27+
// SCCs will be sorted by name.
2528
Priority *int32
2629

2730
// AllowPrivilegedContainer determines if a container can request to be run as privileged.

pkg/security/apis/security/v1/types.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ type SecurityContextConstraints struct {
2323

2424
// Priority influences the sort order of SCCs when evaluating which SCCs to try first for
2525
// a given pod request based on access in the Users and Groups fields. The higher the int, the
26-
// higher priority. If scores for multiple SCCs are equal they will be sorted by name.
26+
// higher priority. An unset value is considered a 0 priority. If scores
27+
// for multiple SCCs are equal they will be sorted from most restrictive to
28+
// least restrictive. If both priorities and restrictions are equal the
29+
// SCCs will be sorted by name.
2730
Priority *int32 `json:"priority" protobuf:"varint,2,opt,name=priority"`
2831

2932
// AllowPrivilegedContainer determines if a container can request to be run as privileged.

0 commit comments

Comments
 (0)