Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "dynamic"
PluginName is the name reported in error metrics.
Variables ¶
This section is empty.
Functions ¶
func NewBackend ¶
NewBackend returns a backend that dynamically updates its configuration based on a shared informer.
func NewDefaultWebhookBatchConfig ¶
func NewDefaultWebhookBatchConfig() *bufferedplugin.BatchConfig
NewDefaultWebhookBatchConfig returns new Batch Config objects populated by default values for dynamic webhooks
Types ¶
type Config ¶
type Config struct { // Informer for the audit sinks Informer auditinformer.AuditSinkInformer // EventConfig holds the configuration for event notifications about the AuditSink API objects EventConfig EventConfig // BufferedConfig is the runtime buffered configuration BufferedConfig *bufferedplugin.BatchConfig // WebhookConfig holds the configuration for outgoing webhooks WebhookConfig WebhookConfig }
Config holds the configuration for the dynamic backend
type EventConfig ¶
type EventConfig struct { // Sink for emitting events Sink record.EventSink // Source holds the source information about the event emitter Source corev1.EventSource }
EventConfig holds the configurations for sending event notifiations about AuditSink API objects
type WebhookConfig ¶
type WebhookConfig struct { // AuthInfoResolverWrapper provides the webhook authentication for in-cluster endpoints AuthInfoResolverWrapper webhook.AuthenticationInfoResolverWrapper // ServiceResolver knows how to convert a webhook service reference into an actual location. ServiceResolver webhook.ServiceResolver }
WebhookConfig holds the configurations for outgoing webhooks
Click to show internal directories.
Click to hide internal directories.