- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for appArmorFieldsInUse (0.23 sec)
-
pkg/api/pod/util.go
for k := range podAnnotations { if strings.HasPrefix(k, api.DeprecatedAppArmorAnnotationKeyPrefix) { return true } } return false } // appArmorFieldsInUse returns true if the pod has apparmor fields set func appArmorFieldsInUse(podSpec *api.PodSpec) bool { if podSpec == nil { return false } if podSpec.SecurityContext != nil && podSpec.SecurityContext.AppArmorProfile != nil { return true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 41.3K bytes - Viewed (0) -
pkg/api/pod/util_test.go
t.Errorf("appArmorAnnotationsInUse does not match expectation: %t != %t", hasAnnotations, test.hasAnnotations) } if hasFields := appArmorFieldsInUse(&newPod.Spec); hasFields != test.hasFields { t.Errorf("appArmorFieldsInUse does not match expectation: %t != %t", hasFields, test.hasFields) } DropDisabledPodFields(newPod, newPod)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 108.8K bytes - Viewed (0)