validatingwebhooks

package
v0.0.0-...-50abef9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ManagedDomainsFileEnvVar if present, points to a simple text
	// file that includes a valid managed domain per line. Cluster deployments
	// requesting that their domains be managed must have a base domain
	// that is a direct child of one of the valid domains.
	ManagedDomainsFileEnvVar = "MANAGED_DOMAINS_FILE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDeploymentValidatingAdmissionHook

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

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

func NewClusterDeploymentValidatingAdmissionHook

func NewClusterDeploymentValidatingAdmissionHook() *ClusterDeploymentValidatingAdmissionHook

NewClusterDeploymentValidatingAdmissionHook constructs a new ClusterDeploymentValidatingAdmissionHook

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/clusterdeploymentvalidators".

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

type ClusterImageSetValidatingAdmissionHook

type ClusterImageSetValidatingAdmissionHook struct{}

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

func (*ClusterImageSetValidatingAdmissionHook) Initialize

func (a *ClusterImageSetValidatingAdmissionHook) 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 (*ClusterImageSetValidatingAdmissionHook) 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 (*ClusterImageSetValidatingAdmissionHook) ValidatingResource

func (a *ClusterImageSetValidatingAdmissionHook) 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/clusterimagesetvalidators".

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

type ClusterProvisionValidatingAdmissionHook

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

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

func (*ClusterProvisionValidatingAdmissionHook) Initialize

func (a *ClusterProvisionValidatingAdmissionHook) 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 (*ClusterProvisionValidatingAdmissionHook) 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 (*ClusterProvisionValidatingAdmissionHook) ValidatingResource

func (a *ClusterProvisionValidatingAdmissionHook) 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/clusterprovisionvalidators". 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/dnszonevalidators".

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

type SelectorSyncSetValidatingAdmissionHook

type SelectorSyncSetValidatingAdmissionHook struct{}

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

func (*SelectorSyncSetValidatingAdmissionHook) Initialize

func (a *SelectorSyncSetValidatingAdmissionHook) 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 (*SelectorSyncSetValidatingAdmissionHook) 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 (*SelectorSyncSetValidatingAdmissionHook) ValidatingResource

func (a *SelectorSyncSetValidatingAdmissionHook) 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/selectorsyncsetvalidators".

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

type SyncSetValidatingAdmissionHook

type SyncSetValidatingAdmissionHook struct{}

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

func (*SyncSetValidatingAdmissionHook) Initialize

func (a *SyncSetValidatingAdmissionHook) 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 (*SyncSetValidatingAdmissionHook) 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 (*SyncSetValidatingAdmissionHook) ValidatingResource

func (a *SyncSetValidatingAdmissionHook) 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/syncsetvalidators".

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