From 0b6b58f68a9eb16e8ac63286dc4e5506f7dac185 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 10 Dec 2025 16:00:33 +0100 Subject: [PATCH] e2e: suppress or ignore init log output klog calls during init are becoming a problem because now test/e2e/framework depends in test/utils/ktesting which bumps up the default verbosity during init to make test output more complete when there is no argument parsing. For cadvisor, an upstream fix is needed (https://github.com/google/cadvisor/pull/3778). For kubectl we can make it silently accept the valid (!) LC_ALL=C. Kubernetes-commit: d17aaf5e29f209ca71047078650e9dcd266e47a4 --- pkg/util/i18n/i18n.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/util/i18n/i18n.go b/pkg/util/i18n/i18n.go index 8b8481c7b..327230dda 100644 --- a/pkg/util/i18n/i18n.go +++ b/pkg/util/i18n/i18n.go @@ -121,7 +121,9 @@ func loadSystemLanguage() string { } pieces := strings.Split(langStr, ".") if len(pieces) != 2 { - klog.V(3).Infof("Unexpected system language (%s), defaulting to en_US", langStr) + if langStr != "C" { + klog.V(3).Infof("Unexpected system language (%s), defaulting to en_US", langStr) + } return "default" } return pieces[0]