package webhook
import "k8s.io/apiserver/plugin/pkg/audit/webhook"
Package webhook implements the audit.Backend interface using HTTP webhooks.
Index ¶
- Constants
- func NewBackend(kubeConfigFile string, groupVersion schema.GroupVersion, retryBackoff wait.Backoff, customDial utilnet.DialFunc) (audit.Backend, error)
- func NewDynamicBackend(rc *rest.RESTClient, retryBackoff wait.Backoff) audit.Backend
Constants ¶
const ( // PluginName is the name of this plugin, to be used in help and logs. PluginName = "webhook" // DefaultInitialBackoffDelay is the default amount of time to wait before // retrying sending audit events through a webhook. DefaultInitialBackoffDelay = 10 * time.Second )
Functions ¶
func NewBackend ¶
func NewBackend(kubeConfigFile string, groupVersion schema.GroupVersion, retryBackoff wait.Backoff, customDial utilnet.DialFunc) (audit.Backend, error)
NewBackend returns an audit backend that sends events over HTTP to an external service.
func NewDynamicBackend ¶
NewDynamicBackend returns an audit backend configured from a REST client that sends events over HTTP to an external service.
Source Files ¶
webhook.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 2 hours ago –
Tools for package owners.