v1beta1

package
v0.0.0-...-f701a6a Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 7 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StatusBadRequest

func StatusBadRequest(err error) *v1beta1.AdmissionResponse

func StatusForbidden

func StatusForbidden(err error) *v1beta1.AdmissionResponse

func StatusInternalServerError

func StatusInternalServerError(err error) *v1beta1.AdmissionResponse

func StatusUninitialized

func StatusUninitialized() *v1beta1.AdmissionResponse

Types

type AdmissionHook

type AdmissionHook interface {
	// Initialize is called as a post-start hook
	Initialize(config *rest.Config, stopCh <-chan struct{}) error

	// Resource is the resource to use for hosting your admission webhook. If the hook implements
	// MutatingAdmissionHook as well, the two resources for validating and mutating admission must be different.
	// Note: this is (usually) not the same as the payload resource!
	Resource() (plural schema.GroupVersionResource, singular string)

	// Validate is called to decide whether to accept the admission request. The returned AdmissionResponse may
	// use the Patch field to mutate the object from the passed AdmissionRequest.
	Admit(admissionSpec *admission.AdmissionRequest) *admission.AdmissionResponse
}

type GetFunc

type GetFunc func(namespace, name string) (runtime.Object, error)

type GetterFactory

type GetterFactory interface {
	New(config *rest.Config) (GetFunc, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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