package dynamic
import "k8s.io/apiserver/plugin/pkg/audit/dynamic"
Index ¶
- Constants
- func NewBackend(c *Config) (audit.Backend, error)
- func NewDefaultWebhookBatchConfig() *bufferedplugin.BatchConfig
- type Config
- type EventConfig
- type WebhookConfig
Constants ¶
const PluginName = "dynamic"
PluginName is the name reported in error metrics.
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
Source Files ¶
defaults.go dynamic.go factory.go
Directories ¶
Path | Synopsis |
---|---|
plugin/pkg/audit/dynamic/enforced |
- Version
- v0.15.11
- Published
- Mar 13, 2020
- Platform
- js/wasm
- Imports
- 24 packages
- Last checked
- 13 minutes ago –
Tools for package owners.