...

Package webhook

import "github.com/chaos-mesh/chaos-mesh/api/webhook"
Overview
Index

Overview ▾

type PodInjector

type PodInjector struct {
    Config  *config.Config
    Metrics *metrics.ChaosCollector
    // contains filtered or unexported fields
}

func (*PodInjector) Handle

func (v *PodInjector) Handle(ctx context.Context, req admission.Request) admission.Response

func (*PodInjector) InjectClient

func (v *PodInjector) InjectClient(c client.Client) error

func (*PodInjector) InjectDecoder

func (v *PodInjector) InjectDecoder(d *admission.Decoder) error