Documentation
¶
Index ¶
- Constants
- func ForKind(gk schema.GroupKind, handler handlers.Handler, subresources ...string) handlers.Handler
- func GenericRules(regexCache *cache.RegexCache) handlers.TypedHandlerWithTenantWithRuleset[genericObject]
- func IngressRules(regexCache *cache.RegexCache) handlers.TypedHandlerWithTenantWithRuleset[*unstructured.Unstructured]
- func Register(regexCache *cache.RegexCache, cfg configuration.Configuration, ...) handlers.Webhook
Constants ¶
View Source
const Path = "/rules/generic/validating"
Variables ¶
This section is empty.
Functions ¶
func ForKind ¶ added in v0.13.11
func ForKind( gk schema.GroupKind, handler handlers.Handler, subresources ...string, ) handlers.Handler
ForKind scopes a validator hosted by the generic rules endpoint to one concrete Kubernetes kind. The main resource is always included; named subresources may be included explicitly. The scope check runs before tenant/ruleset resolution and object decoding.
func GenericRules ¶
func GenericRules( regexCache *cache.RegexCache, ) handlers.TypedHandlerWithTenantWithRuleset[genericObject]
func IngressRules ¶ added in v0.13.10
func IngressRules(regexCache *cache.RegexCache) handlers.TypedHandlerWithTenantWithRuleset[*unstructured.Unstructured]
func Register ¶
func Register( regexCache *cache.RegexCache, cfg configuration.Configuration, resourceRules ...handlers.Handler, ) handlers.Webhook
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.