Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "apis.kcp.io/APIExport"
PluginName is the name used to identify this admission webhook.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIExportAdmission ¶
APIExportAdmission is an admission plugin for checking APIExport validity.
func NewAPIExportAdmission ¶
func NewAPIExportAdmission(isBuiltIn func(apisv1alpha1.GroupResource) bool) *APIExportAdmission
NewAPIExportAdmission constructs a new APIExportAdmission admission plugin.
func (*APIExportAdmission) Validate ¶
func (e *APIExportAdmission) Validate(ctx context.Context, a admission.Attributes, _ admission.ObjectInterfaces) (err error)
Validate ensures that the APIExport is valid.
Click to show internal directories.
Click to hide internal directories.