Documentation ¶
Index ¶
- type ClusterDeploymentValidatingAdmissionHook
- func (a *ClusterDeploymentValidatingAdmissionHook) Initialize(kubeClientConfig *rest.Config, stopCh <-chan struct{}) error
- func (a *ClusterDeploymentValidatingAdmissionHook) Validate(admissionSpec *admissionv1beta1.AdmissionRequest) *admissionv1beta1.AdmissionResponse
- func (a *ClusterDeploymentValidatingAdmissionHook) ValidatingResource() (plural schema.GroupVersionResource, singular string)
- type DNSZoneValidatingAdmissionHook
- func (a *DNSZoneValidatingAdmissionHook) Initialize(kubeClientConfig *rest.Config, stopCh <-chan struct{}) error
- func (a *DNSZoneValidatingAdmissionHook) Validate(admissionSpec *admissionv1beta1.AdmissionRequest) *admissionv1beta1.AdmissionResponse
- func (a *DNSZoneValidatingAdmissionHook) ValidatingResource() (plural schema.GroupVersionResource, singular string)
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 ¶
func (a *ClusterDeploymentValidatingAdmissionHook) Validate(admissionSpec *admissionv1beta1.AdmissionRequest) *admissionv1beta1.AdmissionResponse
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 ¶
func (a *DNSZoneValidatingAdmissionHook) Validate(admissionSpec *admissionv1beta1.AdmissionRequest) *admissionv1beta1.AdmissionResponse
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.