diff --git a/pkg/acquisition/modules/kubernetesaudit/k8s_audit.go b/pkg/acquisition/modules/kubernetesaudit/k8s_audit.go index e189c413af1..15a1a10334b 100644 --- a/pkg/acquisition/modules/kubernetesaudit/k8s_audit.go +++ b/pkg/acquisition/modules/kubernetesaudit/k8s_audit.go @@ -94,6 +94,11 @@ func (ka *KubernetesAuditSource) UnmarshalConfig(yamlConfig []byte) error { func (ka *KubernetesAuditSource) Configure(config []byte, logger *log.Entry) error { ka.logger = logger + err := ka.UnmarshalConfig(config) + if err != nil { + return err + } + ka.logger.Tracef("K8SAudit configuration: %+v", ka.config) ka.addr = fmt.Sprintf("%s:%d", ka.config.ListenAddr, ka.config.ListenPort)