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 ¶
func (si *SerialDeviceInjector) Handle(ctx context.Context, req admission.Request) admission.Response
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.
Click to show internal directories.
Click to hide internal directories.