webhooks

package
v0.0.0-...-9b2ac06 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PodsHandled = prometheus.NewGauge(prometheus.GaugeOpts{
		Name: "pods_handled",
		Help: "Number of pods handled by webhook",
	})

	InjectedCommands = prometheus.NewCounter(prometheus.CounterOpts{
		Name: "injected_commands_total",
		Help: "Number of injected commands",
	})
)

Functions

This section is empty.

Types

type SerialDeviceInjector

type SerialDeviceInjector struct {
	Name            string
	Clientset       versioned.Interface
	ConfigExtractor *images.OCIConfigExtractor
	// contains filtered or unexported fields
}

func (*SerialDeviceInjector) Handle

SerialDeviceInjector mutates command and args to inject script that mounts selected device. It checks if pod requested device and if requested device is available.

func (*SerialDeviceInjector) InjectDecoder

func (si *SerialDeviceInjector) 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