injector

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNamespaceProxyInjectLabelEnabled

func IsNamespaceProxyInjectLabelEnabled(c client.Client, nsName string) bool

func IsProxyInjectAnnotationEnabled

func IsProxyInjectAnnotationEnabled(pod *corev1.Pod) bool

func IsProxyInjectLabelEnabled

func IsProxyInjectLabelEnabled(labels map[string]string) bool

func RegisterWebhooks

func RegisterWebhooks(webhookSvcNs, webhookSvcName string, caBundle []byte)

Types

type MeshService

type MeshService struct {
	Namespace string
	Name      string
}

type ProxyInjector

type ProxyInjector struct {
	client.Client

	Recorder    record.EventRecorder
	ConfigStore *config.Store
	K8sAPI      *kube.K8sAPI
	// contains filtered or unexported fields
}

func (*ProxyInjector) Handle

func (*ProxyInjector) InjectDecoder

func (pi *ProxyInjector) InjectDecoder(d *admission.Decoder) error

type SidecarTemplate

type SidecarTemplate struct {
	corev1.PodSpec
	ServiceEnv []corev1.EnvVar
}

Jump to

Keyboard shortcuts

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