Skip to content

Commit c4747a4

Browse files
authoredApr 1, 2022
Merge pull request accuknox#450 from nyrahul/dev
helm chart fixes
2 parents d6bf8a6 + 104dd47 commit c4747a4

17 files changed

+3
-3
lines changed
 
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎knox-auto-policy-chart/values-prod.yaml ‎deployments/helm/values-prod.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5-
replicaCount: 2
5+
replicaCount: 1
66

77
image:
88
repository: gcr.io/mimetic-kit-294408/production/knoxautopolicy
File renamed without changes.
File renamed without changes.

‎src/plugin/kubearmor.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func ConvertKubeArmorLogToKnoxSystemLog(relayLog *pb.Log) (types.KnoxSystemLog,
123123

124124
// check if source is absolute path and does not terminate in "/"
125125
if !filepath.IsAbs(source) || strings.HasSuffix(source, "/") {
126-
log.Error().Msgf("invalid source [%s]. ", source)
126+
log.Error().Msgf("invalid source [%s]. %+v", source, relayLog)
127127
return types.KnoxSystemLog{}, errors.New("invalid file source")
128128
}
129129

@@ -135,7 +135,7 @@ func ConvertKubeArmorLogToKnoxSystemLog(relayLog *pb.Log) (types.KnoxSystemLog,
135135

136136
// check if resource is absolute path. "/" is ok.
137137
if (relayLog.Operation == "File" || relayLog.Operation == "Process") && !filepath.IsAbs(resource) {
138-
log.Error().Msgf("invalid resource [%s]. ", resource)
138+
log.Error().Msgf("invalid resource [%s]. %+v", resource, relayLog)
139139
return types.KnoxSystemLog{}, errors.New("invalid file resource")
140140
}
141141

0 commit comments

Comments
 (0)
Please sign in to comment.