Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
genevieveluyt committed Jul 13, 2021
1 parent d10a64c commit a341bdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auditors/all/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func Auditors(conf config.KubeauditConfig) ([]kubeaudit.Auditable, error) {
func getEnabledAuditors(conf config.KubeauditConfig) []string {
auditors := []string{}
for _, auditorName := range AuditorNames {
// if value is not found in the `conf.GetEnabledAuditors()` map, this means
// it wasn't added to the config file, so it should be enabled by default
if enabled, ok := conf.GetEnabledAuditors()[auditorName]; !ok || enabled {
auditors = append(auditors, auditorName)
}
Expand Down

0 comments on commit a341bdc

Please sign in to comment.