webhook

package
v0.1.0-rc6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdmissionRequestDebugString

func AdmissionRequestDebugString(a *admissionv1beta1.AdmissionRequest) string

func Allowed

func Allowed(a *admissionv1beta1.AdmissionRequest, pluralResourceName string, status *admissionv1beta1.AdmissionResponse) bool

Allowed returns true if the admission request for the plural name of the resource passed in should be allowed to pass through, false otherwise.

func Initialize

func Initialize(kubeClientConfig *rest.Config, client *dynamic.ResourceInterface, lock *sync.RWMutex, initialized *bool, resourceName string) error

func Initialized

func Initialized(initialized *bool, lock *sync.RWMutex, status *admissionv1beta1.AdmissionResponse) bool

func NewMutatingResource

func NewMutatingResource(resourcePluralName string) schema.GroupVersionResource

func NewValidatingResource

func NewValidatingResource(resourcePluralName string) schema.GroupVersionResource

func Unmarshal

func Unmarshal(rawExt *runtime.RawExtension, object interface{}, status *admissionv1beta1.AdmissionResponse) error

func Validate

func Validate(status *admissionv1beta1.AdmissionResponse, validateFn func() field.ErrorList)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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