package security
import "k8s.io/kubernetes/test/e2e/framework/security"
Index ¶
- func CreateAppArmorTestPod(nsName string, clientset clientset.Interface, podClient *framework.PodClient, unconfined bool, runOnce bool) *v1.Pod
- func LoadAppArmorProfiles(nsName string, clientset clientset.Interface)
Functions ¶
func CreateAppArmorTestPod ¶
func CreateAppArmorTestPod(nsName string, clientset clientset.Interface, podClient *framework.PodClient, unconfined bool, runOnce bool) *v1.Pod
CreateAppArmorTestPod creates a pod that tests apparmor profile enforcement. The pod exits with an error code if the profile is incorrectly enforced. If runOnce is true the pod will exit after a single test, otherwise it will repeat the test every 1 second until failure.
func LoadAppArmorProfiles ¶
LoadAppArmorProfiles creates apparmor-profiles ConfigMap and apparmor-loader ReplicationController.
Source Files ¶
apparmor.go
- Version
- v1.19.6
- Published
- Dec 18, 2020
- Platform
- js/wasm
- Imports
- 9 packages
- Last checked
- 20 seconds ago –
Tools for package owners.