mutate

package
v0.23.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mutate

type Mutate interface {
	Mutate(ctx context.Context, pod *corev1.Pod) (out *corev1.Pod, err error)
}

func NewSidecarMutate

func NewSidecarMutate(client *k8sclient.K8sClient, jfs juicefs.Interface, serverless bool, pair []util.PVPair) Mutate

type SidecarMutate

type SidecarMutate struct {
	Client *k8sclient.K8sClient

	Serverless bool

	Pair []util.PVPair
	// contains filtered or unexported fields
}

func (*SidecarMutate) Deduplicate added in v0.20.0

func (s *SidecarMutate) Deduplicate(pod, mountPod *corev1.Pod, index int)

func (*SidecarMutate) GetSettings

func (s *SidecarMutate) GetSettings(pv corev1.PersistentVolume) (secrets, volCtx map[string]string, options []string, err error)

func (*SidecarMutate) Mutate

func (s *SidecarMutate) Mutate(ctx context.Context, pod *corev1.Pod) (out *corev1.Pod, err error)

Jump to

Keyboard shortcuts

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