mutation

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMutateWebhook

func RegisterMutateWebhook(server *gin.Engine, holder *config.Holder)

RegisterMutateWebhook manages binding endpoint invocations to underlying business logic.

Types

type Patch

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

Patch represents a JSON patch to be applied

func PatchEnvVar

func PatchEnvVar(source, added []corev1.EnvVar, base string) *Patch

PatchEnvVar creates a patch for updating a containers environment variables.

func PatchPod

func PatchPod(spec *v1alpha1.PodPresetSpec, pod *corev1.Pod) []*Patch

PatchPod patches a single pod with the provided preset spec

Jump to

Keyboard shortcuts

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