injector

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KumaInjector

type KumaInjector struct {
	// contains filtered or unexported fields
}

func New

func New(
	cfg runtime_k8s.Injector,
	controlPlaneURL string,
	client kube_client.Client,
	converter k8s_common.Converter,
	envoyAdminPort uint32,
	systemNamespace string,
) (*KumaInjector, error)

func (*KumaInjector) FindServiceAccountToken

func (i *KumaInjector) FindServiceAccountToken(podSpec *kube_core.PodSpec) *kube_core.VolumeMount

func (*KumaInjector) InjectKuma

func (i *KumaInjector) InjectKuma(ctx context.Context, pod *kube_core.Pod) error

func (*KumaInjector) NewAnnotations

func (i *KumaInjector) NewAnnotations(pod *kube_core.Pod, mesh string) (map[string]string, error)

func (*KumaInjector) NewInitContainer

func (i *KumaInjector) NewInitContainer(pod *kube_core.Pod) (kube_core.Container, error)

func (*KumaInjector) NewSidecarContainer

func (i *KumaInjector) NewSidecarContainer(
	pod *kube_core.Pod,
	mesh string,
) (kube_core.Container, error)

func (*KumaInjector) NewVolumeMounts

func (i *KumaInjector) NewVolumeMounts(pod *kube_core.Pod) ([]kube_core.VolumeMount, error)

Jump to

Keyboard shortcuts

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