validatingwebhooks

package
v0.0.0-...-2fbb0c7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDeploymentValidatingAdmissionHook

type ClusterDeploymentValidatingAdmissionHook struct{}

ClusterDeploymentValidatingAdmissionHook is a struct that is used to reference what code should be run by the generic-admission-server.

func (*ClusterDeploymentValidatingAdmissionHook) Initialize

func (a *ClusterDeploymentValidatingAdmissionHook) Initialize(kubeClientConfig *rest.Config, stopCh <-chan struct{}) error

Initialize is called by generic-admission-server on startup to setup any special initialization that your webhook needs.

func (*ClusterDeploymentValidatingAdmissionHook) Validate

Validate is called by generic-admission-server when the registered REST resource above is called with an admission request. Usually it's the kube apiserver that is making the admission validation request.

func (*ClusterDeploymentValidatingAdmissionHook) ValidatingResource

func (a *ClusterDeploymentValidatingAdmissionHook) ValidatingResource() (plural schema.GroupVersionResource, singular string)

ValidatingResource is called by generic-admission-server on startup to register the returned REST resource through which the

webhook is accessed by the kube apiserver.

For example, generic-admission-server uses the data below to register the webhook on the REST resource "/apis/admission.hive.openshift.io/v1alpha1/clusterdeployments".

When the kube apiserver calls this registered REST resource, the generic-admission-server calls the Validate() method below.

type DNSZoneValidatingAdmissionHook

type DNSZoneValidatingAdmissionHook struct{}

DNSZoneValidatingAdmissionHook is a struct that is used to reference what code should be run by the generic-admission-server.

func (*DNSZoneValidatingAdmissionHook) Initialize

func (a *DNSZoneValidatingAdmissionHook) Initialize(kubeClientConfig *rest.Config, stopCh <-chan struct{}) error

Initialize is called by generic-admission-server on startup to setup any special initialization that your webhook needs.

func (*DNSZoneValidatingAdmissionHook) Validate

Validate is called by generic-admission-server when the registered REST resource above is called with an admission request. Usually it's the kube apiserver that is making the admission validation request.

func (*DNSZoneValidatingAdmissionHook) ValidatingResource

func (a *DNSZoneValidatingAdmissionHook) ValidatingResource() (plural schema.GroupVersionResource, singular string)

ValidatingResource is called by generic-admission-server on startup to register the returned REST resource through which the

webhook is accessed by the kube apiserver.

For example, generic-admission-server uses the data below to register the webhook on the REST resource "/apis/admission.hive.openshift.io/v1alpha1/dnszones".

When the kube apiserver calls this registered REST resource, the generic-admission-server calls the Validate() method below.

Jump to

Keyboard shortcuts

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