1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2025-07-01 12:22:38 +00:00

replace with constant

This commit is contained in:
mzmuer 2022-11-24 19:16:03 +08:00
parent 2a76893bc3
commit de97fccbb2

View File

@ -24,7 +24,7 @@ import (
"strings" "strings"
"github.com/golang/glog" "github.com/golang/glog"
yaml "gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"k8s.io/client-go/util/jsonpath" "k8s.io/client-go/util/jsonpath"
) )
@ -243,11 +243,11 @@ func (t testItem) evaluate(s string) *testOutput {
isExist = "does not exist" isExist = "does not exist"
} }
switch t.auditUsed { switch t.auditUsed {
case "auditCommand": case AuditCommand:
glog.V(3).Infof("Flag '%s' %s", t.Flag, isExist) glog.V(3).Infof("Flag '%s' %s", t.Flag, isExist)
case "auditConfig": case AuditConfig:
glog.V(3).Infof("Path '%s' %s", t.Path, isExist) glog.V(3).Infof("Path '%s' %s", t.Path, isExist)
case "auditEnv": case AuditEnv:
glog.V(3).Infof("Env '%s' %s", t.Env, isExist) glog.V(3).Infof("Env '%s' %s", t.Env, isExist)
default: default:
glog.V(3).Infof("Error with identify audit used %s", t.auditUsed) glog.V(3).Infof("Error with identify audit used %s", t.auditUsed)