handler

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

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

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 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