selinuxprofile

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLabelKey         = errors.New("invalid label key")
	ErrInvalidObjClass         = errors.New("invalid object class")
	ErrInvalidPermission       = errors.New("invalid permission")
	ErrSystemInheritNotAllowed = errors.New("system profile not allowed")
	ErrUnknownKindForEntry     = errors.New("unknown inherit kind for entry")
)

Functions

func NewController added in v0.4.0

func NewController() controller.Controller

NewController returns a new empty controller instance.

func NewRawController added in v0.4.0

func NewRawController() controller.Controller

NewController returns a new empty controller instance.

Types

type ReconcileSelinux added in v0.4.0

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

ReconcileSelinux reconciles a Selinux profile objects.

func (*ReconcileSelinux) Healthz added in v0.4.0

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

Healthz is the liveness probe endpoint of the controller.

func (*ReconcileSelinux) Name added in v0.4.0

func (r *ReconcileSelinux) Name() string

Name returns the name of the controller.

func (*ReconcileSelinux) Reconcile added in v0.4.0

func (r *ReconcileSelinux) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a SelinuxProfile object and makes changes based on the state read and what is in the `SelinuxProfile.Spec`.

func (*ReconcileSelinux) SchemeBuilder added in v0.4.0

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

SchemeBuilder returns the API scheme of the controller.

func (*ReconcileSelinux) Setup added in v0.4.0

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

Setup adds a controller that reconciles selinux profiles.

type SelinuxObjectHandler added in v0.4.0

type SelinuxObjectHandler interface {
	Init(context.Context, client.Client, types.NamespacedName) error
	GetProfileObject() selxv1alpha2.SelinuxProfileObject
	Validate() error
	GetCILPolicy() (string, error)
}

type SelinuxObjectHandlerInit added in v0.4.0

type SelinuxObjectHandlerInit func(context.Context, client.Client, types.NamespacedName) (SelinuxObjectHandler, error)

Jump to

Keyboard shortcuts

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