profile

package
v0.0.0-...-db09b68 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ProfileRootPath specifies the path where the operator populates the
	// profiles.
	ProfileRootPath = "/var/lib/kubelet/seccomp/operator"

	// DefaultProfilesConfigMapName is the configMap name for the default
	// profiles.
	DefaultProfilesConfigMapName = "default-profiles"

	// DefaultNamespace is the default namespace for the operator deployment.
	DefaultNamespace = "seccomp-operator"
)
View Source
const SeccompProfileAnnotation = "seccomp.security.kubernetes.io/profile"

SeccompProfileAnnotation is the annotation on a ConfigMap that specifies its intention to be treated as a seccomp profile.

Variables

This section is empty.

Functions

func GetProfilePath

func GetProfilePath(profileName string, cfg *corev1.ConfigMap) (string, error)

GetProfilePath returns the full path for the provided profile name and config.

func Setup

func Setup(mgr ctrl.Manager, l logr.Logger) error

Setup adds a controller that reconciles seccomp profiles.

Types

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

A Reconciler reconciles seccomp profiles.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req reconcile.Request) (reconcile.Result, error)

Reconcile reconciles a ConfigMap representing a seccomp profile.

Jump to

Keyboard shortcuts

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