selinuxprofile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstallerPodName

func GetInstallerPodName(name, ns string, node *corev1.Node) string

GetInstallerPodName gets the name of the installer pod. Given that the pod names can get pretty long, we hash the name so it fits in the space and is also unique.

func GetPolicyConfigMapName

func GetPolicyConfigMapName(name, ns string) string

GetPolicyConfigMapName Gets the configMap name for a given policy.

func GetProfileK8sName

func GetProfileK8sName(name, ns string) string

GetProfileK8sName gets the policy name in a format that's OK for k8s names.

func IgnoreAlreadyExists

func IgnoreAlreadyExists(err error) error

IgnoreAlreadyExists ignores "AlreadyExists" errors.

func IgnoreNotFound

func IgnoreNotFound(err error) error

IgnoreNotFound ignores "NotFound" errors.

func RemoveStringFromSlice

func RemoveStringFromSlice(slice []string, s string) (result []string)

RemoveStringFromSlice helper function to remove a string from a slice.

func Setup

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

Setup adds a controller that reconciles seccomp profiles.

func SliceContainsString

func SliceContainsString(slice []string, s string) bool

SliceContainsString helper function to check if a string is in a slice of strings.

Types

type ReconcileSP

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

ReconcileSP reconciles a SelinuxProfile object.

func (*ReconcileSP) Reconcile

func (r *ReconcileSP) Reconcile(_ 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`.

Jump to

Keyboard shortcuts

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