profile

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterProfileNameTemplate = "varmor-cluster-%s-%s"
	ProfileNameTemplate        = "varmor-%s-%s"
)

profileNameTemplate is the name template for ArmorProfile/ArmorProfileModel objects and AppArmor/Seccomp/BPF profiles.

For namespace-scope profile, its format is "varmor-{VarmorProfile Namespace}-{VarmorProfile Name}"
For cluster-scope profile, its format is "varmor-cluster-{vArmor Namespace}-{VarmorClusterProfile Name}"

Variables

This section is empty.

Functions

func GenerateArmorProfileName

func GenerateArmorProfileName(ns string, name string, clusterScope bool) string

func GenerateProfile

func GenerateProfile(
	kubeClient *kubernetes.Clientset,
	varmorInterface varmorinterface.CrdV1beta1Interface,
	policy varmor.Policy,
	name string, namespace string,
	complete bool,
	enablePodServiceEgressControl bool,
	logger logr.Logger) (*varmor.Profile, *varmortypes.EgressInfo, error)

func NewArmorProfile

func NewArmorProfile(
	kubeClient *kubernetes.Clientset,
	varmorInterface varmorinterface.CrdV1beta1Interface,
	obj interface{},
	clusterScope bool,
	enablePodServiceEgressControl bool,
	logger logr.Logger) (*varmor.ArmorProfile, *varmortypes.EgressInfo, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL