sidecar

package
v0.0.0-...-19badf1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 25 Imported by: 0

Documentation

Overview

Package sidecar contains the logic for injecting vineyard sidecar

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Injector

type Injector struct {
	client.Client
	// contains filtered or unexported fields
}

Injector injects vineyard sidecar container into Pods

func (*Injector) ApplyToSidecar

func (r *Injector) ApplyToSidecar(
	sidecar *v1alpha1.Sidecar,
	pod *corev1.Pod,
	podWithSidecar *corev1.Pod,
	addLabels bool,
) error

ApplyToSidecar applies the sidecar cr and pod to the sidecar

func (*Injector) Handle

Handle handles admission requests.

func (*Injector) InjectDecoder

func (r *Injector) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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