controller

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAdmitFunc

func HandleAdmitFunc(w http.ResponseWriter, r *http.Request, admit admitFunc, injConfigs map[string]*config.InjectionConfig, namespaces map[string]bool) ([]byte, error)

This function parses the HTTP request from admission webhook controller, and in case of a well-formed request , it call a admit function corresponding that implement logic for that request. The response will be returned as raw bytes

Types

type PatchOperation

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

Jump to

Keyboard shortcuts

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