@@ -49,11 +49,11 @@ func pointValue(constraint *kapi.SecurityContextConstraints) int {
49
49
return points
50
50
}
51
51
52
- // allowsHostPathVolume returns a score based on the volumes allowed by the SCC.
53
- // Allowing a host volume wil return a score of 10. Allowance of anything other
54
- // than kapi.FSTypeSecret, kapi.FSTypeConfigMap, kapi.FSTypeConfigMap, kapi.FSTypeDownwardAPI
55
- // will result in a score of 5. If the SCC only allows kapi.FSTypeSecret, kapi.FSTypeConfigMap,
56
- // kapi.FSTypeEmptyDir, kapi.FSTypeDownwardAPI it will have a score of 0.
52
+ // volumePointValue returns a score based on the volumes allowed by the SCC.
53
+ // Allowing a host volume will return a score of 10. Allowance of anything other
54
+ // than Secret, ConfigMap, EmptyDir, DownwardAPI, Projected, and None will result in
55
+ // a score of 5. If the SCC only allows these trivial types, it will have a
56
+ // score of 0.
57
57
func volumePointValue (scc * kapi.SecurityContextConstraints ) int {
58
58
hasHostVolume := false
59
59
hasNonTrivialVolume := false
@@ -66,8 +66,8 @@ func volumePointValue(scc *kapi.SecurityContextConstraints) int {
66
66
// it is easier to specifically list the trivial volumes and allow the
67
67
// default case to be non-trivial so we don't have to worry about adding
68
68
// volumes in the future unless they're trivial.
69
- case kapi .FSTypeSecret , kapi .FSTypeConfigMap ,
70
- kapi .FSTypeEmptyDir , kapi .FSTypeDownwardAPI , kapi .FSTypeNone :
69
+ case kapi .FSTypeSecret , kapi .FSTypeConfigMap , kapi . FSTypeEmptyDir ,
70
+ kapi .FSTypeDownwardAPI , kapi .FSProjected , kapi .FSTypeNone :
71
71
// do nothing
72
72
default :
73
73
hasNonTrivialVolume = true
0 commit comments