Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ linters:
# - gosimple
# - govet
# - ineffassign
- loggercheck
# - misspell
- nakedret
# - nilerr
Expand Down
4 changes: 2 additions & 2 deletions controllers/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ func (r *DPAReconciler) getMatchedKeyValue(key string, s string) (string, error)
s = strings.TrimPrefix(s, prefix)
}
if len(s) == 0 {
r.Log.Info("Could not parse secret for %s", key)
return s, errors.New(key + " secret parsing error")
r.Log.Info(fmt.Sprintf("Could not parse secret for %s", key))
return s, errors.New("secret parsing error in key " + key)
}
return s, nil
}
Expand Down