injector

package
v0.0.0-...-309b3d5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InjectAnnotationKey  = "sidecarconfig.kidecar.io/inject"
	ConfigmapHashKey     = "sidecarconfig.kidecar.io/hash"
	KidecarConfigmapName = "kidecar-config"
	HotUpdateVolume      = "share-data"
)
View Source
const (
	EnvKidecarImage     string = "KIDECAR_IMAGE"
	DefaultKidecarImage string = "113745426946.dkr.ecr.us-east-1.amazonaws.com/xuetaotest/kidecar:v5"
)

Variables

This section is empty.

Functions

func EnsureConfigmap

func EnsureConfigmap(ctx context.Context, ctrlclient client.Client, namespace string, SidecarConfig *v1alpha1.SidecarConfig) error

func GetSidecarConfigOfPod

func GetSidecarConfigOfPod(ctx context.Context, pod *corev1.Pod, ctrlclient client.Client) (*v1alpha1.SidecarConfig, error)

func InjectPod

func InjectPod(ctx context.Context, pod *corev1.Pod, ctrlclient client.Client) error

func Match

func Match(pod *corev1.Pod, sidecarconfig *v1alpha1.SidecarConfigSpec, ctrlclient client.Client) (bool, error)

func MatchLabelSelector

func MatchLabelSelector(selector *metav1.LabelSelector, podLabels map[string]string) (bool, error)

func MatchNamespace

func MatchNamespace(namespace string, selector *metav1.LabelSelector, ctrlclient client.Client) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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