webhook

package
v0.0.0-...-ef1d371 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertObject

func ConvertObject(schema collection.Schema, object crd.IstioObject, domain string) (*config.Config, error)

ConvertObject converts an IstioObject k8s-style object to the internal configuration model.

func Run

func Run(ctx context.Context, port int, certFile string, keyFile string, patcher *patch.Patcher) error

Run webhook

Types

type Config

type Config struct {
}

type IstioMutator

type IstioMutator struct {
	// contains filtered or unexported fields
}

func (*IstioMutator) Mutate

func (i *IstioMutator) Mutate(ctx context.Context, ar *model.AdmissionReview, object v1.Object) (result *mutating.MutatorResult, err error)

Jump to

Keyboard shortcuts

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