handler

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SidecarPath    = "/juicefs/inject-v1-pod"
	ServerlessPath = "/juicefs/serverless/inject-v1-pod"
	SecretPath     = "/juicefs/validate-secret"
	PVPath         = "/juicefs/validate-pv"
)

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 PVHandler added in v0.23.6

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

func NewPVHandler added in v0.23.6

func NewPVHandler(client *k8sclient.K8sClient) *PVHandler

func (*PVHandler) Handle added in v0.23.6

func (s *PVHandler) Handle(ctx context.Context, request admission.Request) admission.Response

func (*PVHandler) InjectDecoder added in v0.23.6

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

InjectDecoder injects the decoder.

type SecretHandler added in v0.23.4

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

func NewSecretHandler added in v0.23.4

func NewSecretHandler(client *k8sclient.K8sClient) *SecretHandler

func (*SecretHandler) Handle added in v0.23.4

func (*SecretHandler) InjectDecoder added in v0.23.4

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

InjectDecoder injects the decoder.

type SidecarHandler

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

func NewSidecarHandler added in v0.23.0

func NewSidecarHandler(client *k8sclient.K8sClient, serverless bool) *SidecarHandler

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