1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

Adding log level 4 to "Loading variable" logs in context.go line no 124 and 139 (#648)

Type at pkg/policyviolation/namespacedev.go
This commit is contained in:
shubham 2020-01-25 05:59:51 +05:30 committed by Shivkumar Dudhani
parent f4406bbefc
commit 7a34378648
2 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,7 @@ func (ctx *Context) AddSA(userName string) error {
saNamespace = groups[0]
}
glog.Infof("Loading variable serviceAccountName with value: %s", saName)
glog.V(4).Infof("Loading variable serviceAccountName with value: %s", saName)
saNameObj := struct {
SA string `json:"serviceAccountName"`
}{
@ -137,7 +137,7 @@ func (ctx *Context) AddSA(userName string) error {
return err
}
glog.Infof("Loading variable serviceAccountNamespace with value: %s", saNamespace)
glog.V(4).Infof("Loading variable serviceAccountNamespace with value: %s", saNamespace)
saNsObj := struct {
SA string `json:"serviceAccountNamespace"`
}{

View file

@ -111,6 +111,6 @@ func (nspv *namespacedPV) updatePV(newPv, oldPv *kyverno.PolicyViolation) error
if err != nil {
return fmt.Errorf("failed to update namespaced polciy violation: %v", err)
}
glog.Infof("namespced policy violation updated for resource %v", newPv.Spec.ResourceSpec)
glog.Infof("namespaced policy violation updated for resource %v", newPv.Spec.ResourceSpec)
return nil
}