injector

package
v0.0.0-...-21a76b1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 6 Imported by: 0

Documentation

Overview

Package injector contains the logic for injecting the vineyard sidecar into a pod.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SocketEnv is the env of vineyard ipc socket.
	SocketEnv = "VINEYARD_IPC_SOCKET"
)

Functions

func InjectEnv

func InjectEnv(containers *[]interface{}, mountPath string)

InjectEnv injects the vineyard ipc socket env into the containers env.

func InjectSidecar

func InjectSidecar(workload, sidecar *unstructured.Unstructured, s *v1alpha1.Sidecar, selector string) error

InjectSidecar injects the sidecar into the given unstructured kubernetes object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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