controller

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartReconciler added in v0.12.0

func StartReconciler() error

Types

type KubeletClientConfig added in v0.13.2

type KubeletClientConfig struct {
	// Address specifies the kubelet address
	Address string

	// Port specifies the default port - used if no information about Kubelet port can be found in Node.NodeStatus.DaemonEndpoints.
	Port int

	// TLSClientConfig contains settings to enable transport layer security
	restclient.TLSClientConfig

	// Server requires Bearer authentication
	BearerToken string

	// HTTPTimeout is used by the client to timeout http requests to Kubelet.
	HTTPTimeout time.Duration
}

KubeletClientConfig defines config parameters for the kubelet client

type MountController added in v0.15.0

type MountController struct {
	*k8sclient.K8sClient
}

func NewMountController added in v0.15.0

func NewMountController(client *k8sclient.K8sClient) *MountController

func (MountController) Reconcile added in v0.15.0

func (m MountController) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

func (*MountController) SetupWithManager added in v0.15.0

func (m *MountController) SetupWithManager(mgr ctrl.Manager) error

type PodDriver

type PodDriver struct {
	Client *k8sclient.K8sClient

	mount.SafeFormatAndMount
	// contains filtered or unexported fields
}

func NewPodDriver

func NewPodDriver(client *k8sclient.K8sClient, mounter mount.SafeFormatAndMount) *PodDriver

func (*PodDriver) CleanUpCache added in v0.14.1

func (p *PodDriver) CleanUpCache(ctx context.Context, pod *corev1.Pod)

CleanUpCache clean up cache

func (*PodDriver) Run

func (p *PodDriver) Run(ctx context.Context, current *corev1.Pod) error

func (*PodDriver) SetMountInfo added in v0.17.4

func (p *PodDriver) SetMountInfo(mit mountInfoTable)

type PodReconciler

type PodReconciler struct {
	mount.SafeFormatAndMount
	*k8sclient.K8sClient
}

Jump to

Keyboard shortcuts

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