webhook

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddToManagerFuncs []func(manager.Manager) error

AddToManagerFuncs is a list of functions to add all Controllers to the Manager

Functions

func AddGenericWebhooks

func AddGenericWebhooks(server GenericHandler, opa opa.Query)

AddGenericWebhooks adds all handlers that handle raw HTTP requests.

func AddPolicyWebhook

func AddPolicyWebhook(mgr manager.Manager) error

AddPolicyWebhook registers the policy webhook server with the manager below: notations add permissions kube-mgmt needs. Access cannot yet be restricted on a namespace-level granularity +kubebuilder:rbac:groups=*,resources=*,verbs=get;list;watch +kubebuilder:rbac:groups=,resources=configmaps,verbs=get;list;watch;create;update;patch;delete

func AddToManager

func AddToManager(m manager.Manager) error

AddToManager adds all Controllers to the Manager +kubebuilder:rbac:groups=admissionregistration.k8s.io,resources=mutatingwebhookconfigurations;validatingwebhookconfigurations,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;patch;delete

Types

type GenericHandler

type GenericHandler interface {
	Handle(string, http.Handler)
}

GenericHandler is any object that supports the webhook server's Handle() method.

type GenericWebhook

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

func (GenericWebhook) ServeHTTP

func (gw GenericWebhook) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the net/http server handler interface and recovers from panics.

Jump to

Keyboard shortcuts

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