Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "apis.kcp.io/ReservedNames"
PluginName is the name used to identify this admission webhook.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReservedNames ¶
ReservedNames is an admission plugin for checking reserved object names.
func NewReservedNames ¶
func NewReservedNames() *ReservedNames
NewReservedNames constructs a new ReservedNames admission plugin.
func (*ReservedNames) Admit ¶
func (o *ReservedNames) Admit(ctx context.Context, a admission.Attributes, _ admission.ObjectInterfaces) (err error)
Admit ensures that the object does not violate reserved name constraints.
Click to show internal directories.
Click to hide internal directories.