kubernetesk8s.io/kubernetes/pkg/security/apparmor Index | Files

package apparmor

import "k8s.io/kubernetes/pkg/security/apparmor"

Index

Functions

func GetProfile

func GetProfile(pod *v1.Pod, container *v1.Container) *v1.AppArmorProfile

GetProfileName returns the name of the profile to use with the container.

Types

type Validator

type Validator interface {
	Validate(pod *v1.Pod) error
	ValidateHost() error
}

Validator is a interface for validating that a pod with an AppArmor profile can be run by a Node.

func NewValidator

func NewValidator() Validator

NewValidator is in order to find AppArmor FS

Source Files

helpers.go validate.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
6 packages
Last checked
3 hours ago

Tools for package owners.