fix: add changelog and nolint explanation for CI

Add missing changelog entry for PR 9654 (fixes Changelog Check).
Add explanation to //nolint:errcheck directives (fixes nolintlint).

Signed-off-by: Pierluigi Lenoci <pierluigilenoci@gmail.com>
This commit is contained in:
Pierluigi Lenoci
2026-04-22 16:10:46 +02:00
parent 0fa1910afb
commit 4d23571c18
2 changed files with 3 additions and 2 deletions
@@ -0,0 +1 @@
Fix issue #9658, Honor --stderrthreshold when --logtostderr is enabled
+2 -2
View File
@@ -135,8 +135,8 @@ operations can also be performed as 'velero backup get' and 'velero schedule cre
// Opt into the new klog behavior so that -stderrthreshold is honored even
// when -logtostderr=true (the default).
// Ref: kubernetes/klog#212, kubernetes/klog#432
flag.CommandLine.Set("legacy_stderr_threshold_behavior", "false") //nolint:errcheck
flag.CommandLine.Set("stderrthreshold", "INFO") //nolint:errcheck
flag.CommandLine.Set("legacy_stderr_threshold_behavior", "false") //nolint:errcheck // flag is registered by klog.InitFlags above
flag.CommandLine.Set("stderrthreshold", "INFO") //nolint:errcheck // flag is registered by klog.InitFlags above
c.PersistentFlags().AddGoFlagSet(flag.CommandLine)
return c