mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 10:55:05 +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:
parent
f4406bbefc
commit
7a34378648
2 changed files with 3 additions and 3 deletions
|
@ -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"`
|
||||
}{
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue