Skip to content

Commit

Permalink
Properly load k8s audit configuration (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc authored Apr 3, 2023
1 parent 38ab6be commit 3132aa5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/acquisition/modules/kubernetesaudit/k8s_audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3132aa5

Please sign in to comment.