webhook

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

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

Go to latest
Published: Jul 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mutate

func Mutate(w http.ResponseWriter, r *http.Request, defaults k8s_v1.ResourceRequirements, dryRun bool) error

Mutate responds to kubernetes webhooks request to add resource limits.

Types

type Patch

type Patch struct {
	Op    string      `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value"`
}

Patch represents a single JSONPatch operation @see http://jsonpatch.com/

Jump to

Keyboard shortcuts

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