handler

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const HandlerPath = "/juicefs/inject-v1-pod"

Variables

This section is empty.

Functions

func Register

func Register(mgr manager.Manager, client *k8sclient.K8sClient)

Register registers the handlers to the manager

Types

type SidecarHandler

type SidecarHandler struct {
	Client *k8sclient.K8sClient
	// contains filtered or unexported fields
}

func (*SidecarHandler) GetVolume

func (s *SidecarHandler) GetVolume(ctx context.Context, pod corev1.Pod) (used bool, pvGot *corev1.PersistentVolume, pvcGot *corev1.PersistentVolumeClaim, err error)

GetVolume get juicefs pv & pvc from pod

func (*SidecarHandler) Handle

func (*SidecarHandler) InjectDecoder

func (s *SidecarHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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