workloadannotator

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusToProfLabel = "spo.x-k8s.io/profile-id"
)

Variables

This section is empty.

Functions

func NewController added in v0.4.0

func NewController() controller.Controller

NewController returns a new empty controller instance.

Types

type PodReconciler

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

A PodReconciler monitors pod changes and links them to SeccompProfiles.

func (*PodReconciler) Healthz added in v0.4.0

func (r *PodReconciler) Healthz(*http.Request) error

Healthz is the liveness probe endpoint of the controller.

func (*PodReconciler) Name added in v0.4.0

func (r *PodReconciler) Name() string

Name returns the name of the controller.

func (*PodReconciler) Reconcile

func (r *PodReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile reacts to pod events and updates SeccompProfiles or SelinuxProfiles if in use or no longer in use by a pod.

func (*PodReconciler) SchemeBuilder added in v0.4.0

func (r *PodReconciler) SchemeBuilder() *scheme.Builder

SchemeBuilder returns the API scheme of the controller.

func (*PodReconciler) Setup added in v0.4.0

func (r *PodReconciler) Setup(
	ctx context.Context,
	mgr ctrl.Manager,
	_ *metrics.Metrics,
) error

Setup adds a controller that reconciles the SPOd DaemonSet.

Jump to

Keyboard shortcuts

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