Documentation
¶
Index ¶
- func GetInstallerPodName(name, ns string, node *corev1.Node) string
- func GetPolicyConfigMapName(name, ns string) string
- func GetProfileK8sName(name, ns string) string
- func IgnoreAlreadyExists(err error) error
- func IgnoreNotFound(err error) error
- func RemoveStringFromSlice(slice []string, s string) (result []string)
- func Setup(ctx context.Context, mgr ctrl.Manager, l logr.Logger) error
- func SliceContainsString(slice []string, s string) bool
- type ReconcileSP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstallerPodName ¶
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 ¶
GetPolicyConfigMapName Gets the configMap name for a given policy.
func GetProfileK8sName ¶
GetProfileK8sName gets the policy name in a format that's OK for k8s names.
func IgnoreAlreadyExists ¶
IgnoreAlreadyExists ignores "AlreadyExists" errors.
func IgnoreNotFound ¶
IgnoreNotFound ignores "NotFound" errors.
func RemoveStringFromSlice ¶
RemoveStringFromSlice helper function to remove a string from a slice.
func SliceContainsString ¶
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.
Click to show internal directories.
Click to hide internal directories.