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.
Click to show internal directories.
Click to hide internal directories.