selinuxwarning

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMetrics

func RegisterMetrics(logger klog.Logger, cache cache.VolumeCache)

Types

type Controller

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

SELinuxWarning controller is a controller that emits a warning event and metrics when two pods *might* use the same volume with different SELinux labels. It is optional. It does nothing on a cluster that has SELinux disabled. It does not modify any API objects except for the warning events.

The controller watches *all* Pods and reports issues on all their volumes, regardless if the Pod actually run on are Pending forever or if they have correct node anti-affinity and never run on the same node.

func (*Controller) CSIDriverLister

func (c *Controller) CSIDriverLister() storagelisters.CSIDriverLister

func (*Controller) DeleteServiceAccountTokenFunc

func (c *Controller) DeleteServiceAccountTokenFunc() func(types.UID)

func (*Controller) GetAttachedVolumesFromNodeStatus

func (c *Controller) GetAttachedVolumesFromNodeStatus() (map[v1.UniqueVolumeName]string, error)

func (*Controller) GetConfigMapFunc

func (c *Controller) GetConfigMapFunc() func(namespace, name string) (*v1.ConfigMap, error)

func (*Controller) GetEventRecorder

func (c *Controller) GetEventRecorder() record.EventRecorder

func (*Controller) GetExec

func (c *Controller) GetExec(pluginName string) utilexec.Interface

func (*Controller) GetHostIP

func (c *Controller) GetHostIP() (net.IP, error)

func (*Controller) GetHostName

func (c *Controller) GetHostName() string

func (*Controller) GetKubeClient

func (c *Controller) GetKubeClient() clientset.Interface

func (*Controller) GetMounter

func (c *Controller) GetMounter(pluginName string) mount.Interface

func (*Controller) GetNodeAllocatable

func (c *Controller) GetNodeAllocatable() (v1.ResourceList, error)

func (*Controller) GetNodeLabels

func (c *Controller) GetNodeLabels() (map[string]string, error)

func (*Controller) GetNodeName

func (c *Controller) GetNodeName() types.NodeName

func (*Controller) GetPluginDir

func (c *Controller) GetPluginDir(podUID string) string

VolumeHost implementation. It requires a lot of kubelet specific methods that are not used in the controller.

func (*Controller) GetPodPluginDir

func (c *Controller) GetPodPluginDir(podUID types.UID, pluginName string) string

func (*Controller) GetPodVolumeDeviceDir

func (c *Controller) GetPodVolumeDeviceDir(podUID types.UID, pluginName string) string

func (*Controller) GetPodVolumeDir

func (c *Controller) GetPodVolumeDir(podUID types.UID, pluginName, volumeName string) string

func (*Controller) GetPodsDir

func (c *Controller) GetPodsDir() string

func (*Controller) GetSecretFunc

func (c *Controller) GetSecretFunc() func(namespace, name string) (*v1.Secret, error)

func (*Controller) GetServiceAccountTokenFunc

func (c *Controller) GetServiceAccountTokenFunc() func(_, _ string, _ *authenticationv1.TokenRequest) (*authenticationv1.TokenRequest, error)

func (*Controller) GetSubpather

func (c *Controller) GetSubpather() subpath.Interface

func (*Controller) GetVolumeDevicePluginDir

func (c *Controller) GetVolumeDevicePluginDir(podUID string) string

func (*Controller) NewWrapperMounter

func (c *Controller) NewWrapperMounter(volName string, spec volume.Spec, pod *v1.Pod) (volume.Mounter, error)

func (*Controller) NewWrapperUnmounter

func (c *Controller) NewWrapperUnmounter(volName string, spec volume.Spec, podUID types.UID) (volume.Unmounter, error)

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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